Commit c64c2eae authored by Divy Le Ray's avatar Divy Le Ray Committed by David S. Miller

cxgb3 - Fatal error update

Stop the MAC when a fatal error is detected.
Signed-off-by: default avatarDivy Le Ray <divy@chelsio.com>
Signed-off-by: default avatarJeff Garzik <jeff@garzik.org>
parent c9a6ce50
...@@ -2297,6 +2297,10 @@ void t3_fatal_err(struct adapter *adapter) ...@@ -2297,6 +2297,10 @@ void t3_fatal_err(struct adapter *adapter)
if (adapter->flags & FULL_INIT_DONE) { if (adapter->flags & FULL_INIT_DONE) {
t3_sge_stop(adapter); 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); t3_intr_disable(adapter);
} }
CH_ALERT(adapter, "encountered fatal error, operation suspended\n"); CH_ALERT(adapter, "encountered fatal error, operation suspended\n");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment