diff options
author | Sritej Velaga <sritej.velaga@qlogic.com> | 2012-02-03 08:45:43 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-02-04 15:59:30 -0500 |
commit | 97048a1f2b2f0ca2b2f690b551d5e97eeb94a0e9 (patch) | |
tree | ec6153f0bacb6204abdaff3c38256575ec53d55b | |
parent | 476a4b6d2543f0d9fa5205e0c25ebcd7973337bd (diff) |
qlcnic: Fix firmware abort code check.
Check bits 8-28 of peg_halt status register for firmware abort code.
Signed-off-by: Sritej Velaga <sritej.velaga@qlogic.com>
Signed-off-by: Sony Chacko <sony.chacko@qlogic.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c index a47c70b09342..dba95311a462 100644 --- a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c +++ b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c | |||
@@ -3159,7 +3159,7 @@ qlcnic_check_health(struct qlcnic_adapter *adapter) | |||
3159 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_3 + 0x3c), | 3159 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_3 + 0x3c), |
3160 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_4 + 0x3c)); | 3160 | QLCRD32(adapter, QLCNIC_CRB_PEG_NET_4 + 0x3c)); |
3161 | peg_status = QLCRD32(adapter, QLCNIC_PEG_HALT_STATUS1); | 3161 | peg_status = QLCRD32(adapter, QLCNIC_PEG_HALT_STATUS1); |
3162 | if (LSW(MSB(peg_status)) == 0x67) | 3162 | if (QLCNIC_FWERROR_CODE(peg_status) == 0x67) |
3163 | dev_err(&adapter->pdev->dev, | 3163 | dev_err(&adapter->pdev->dev, |
3164 | "Firmware aborted with error code 0x00006700. " | 3164 | "Firmware aborted with error code 0x00006700. " |
3165 | "Device is being reset.\n"); | 3165 | "Device is being reset.\n"); |