diff options
author | Divy Le Ray <divy@chelsio.com> | 2007-08-22 05:49:31 +0200 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-11 01:50:50 +0200 |
commit | c64c2eaeaaf04f9c8a303508f804ba256435d79f (patch) | |
tree | e8cfed242cda71677bc4bca22ff4637c85ff986d /drivers/net/cxgb3/cxgb3_main.c | |
parent | cxgb3 - tighten checks on TID values (diff) | |
download | linux-c64c2eaeaaf04f9c8a303508f804ba256435d79f.tar.xz linux-c64c2eaeaaf04f9c8a303508f804ba256435d79f.zip |
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 '')
-rw-r--r-- | drivers/net/cxgb3/cxgb3_main.c | 4 |
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) 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"); |