aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorDivy Le Ray <divy@chelsio.com>2007-08-21 23:49:31 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:50:50 -0400
commitc64c2eaeaaf04f9c8a303508f804ba256435d79f (patch)
treee8cfed242cda71677bc4bca22ff4637c85ff986d /drivers/net
parentc9a6ce500d78932c43361eae28c3de81b3660c77 (diff)
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>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/cxgb3/cxgb3_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/cxgb3/cxgb3_main.c b/drivers/net/cxgb3/cxgb3_main.c
index 57fc199e0614..c00f2df05bcc 100644
--- a/drivers/net/cxgb3/cxgb3_main.c
+++ b/drivers/net/cxgb3/cxgb3_main.c
@@ -2297,6 +2297,10 @@ void t3_fatal_err(struct adapter *adapter)
2297 2297
2298 if (adapter->flags & FULL_INIT_DONE) { 2298 if (adapter->flags & FULL_INIT_DONE) {
2299 t3_sge_stop(adapter); 2299 t3_sge_stop(adapter);
2300 t3_write_reg(adapter, A_XGM_TX_CTRL, 0);
2301 t3_write_reg(adapter, A_XGM_RX_CTRL, 0);
2302 t3_write_reg(adapter, XGM_REG(A_XGM_TX_CTRL, 1), 0);
2303 t3_write_reg(adapter, XGM_REG(A_XGM_RX_CTRL, 1), 0);
2300 t3_intr_disable(adapter); 2304 t3_intr_disable(adapter);
2301 } 2305 }
2302 CH_ALERT(adapter, "encountered fatal error, operation suspended\n"); 2306 CH_ALERT(adapter, "encountered fatal error, operation suspended\n");