diff options
author | Divy Le Ray <divy@chelsio.com> | 2007-08-21 20:49:31 -0700 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2007-10-10 16:50:50 -0700 |
commit | c64c2eaeaaf04f9c8a303508f804ba256435d79f (patch) | |
tree | e8cfed242cda71677bc4bca22ff4637c85ff986d /drivers/net/cxgb3 | |
parent | c9a6ce500d78932c43361eae28c3de81b3660c77 (diff) | |
download | kernel-crypto-c64c2eaeaaf04f9c8a303508f804ba256435d79f.tar.gz kernel-crypto-c64c2eaeaaf04f9c8a303508f804ba256435d79f.tar.xz kernel-crypto-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 'drivers/net/cxgb3')
-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 57fc199e061..c00f2df05bc 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"); |