mirror of
https://github.com/torvalds/linux.git
synced 2024-11-18 01:51:53 +00:00
cxgb3 - Fatal error update
Stop the MAC when a fatal error is detected. Signed-off-by: Divy Le Ray <divy@chelsio.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
c9a6ce500d
commit
c64c2eaeaa
@ -2297,6 +2297,10 @@ void t3_fatal_err(struct adapter *adapter)
|
||||
|
||||
if (adapter->flags & FULL_INIT_DONE) {
|
||||
t3_sge_stop(adapter);
|
||||
t3_write_reg(adapter, A_XGM_TX_CTRL, 0);
|
||||
t3_write_reg(adapter, A_XGM_RX_CTRL, 0);
|
||||
t3_write_reg(adapter, XGM_REG(A_XGM_TX_CTRL, 1), 0);
|
||||
t3_write_reg(adapter, XGM_REG(A_XGM_RX_CTRL, 1), 0);
|
||||
t3_intr_disable(adapter);
|
||||
}
|
||||
CH_ALERT(adapter, "encountered fatal error, operation suspended\n");
|
||||
|
Loading…
Reference in New Issue
Block a user