projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
476a4b6
)
qlcnic: Fix firmware abort code check.
author
Sritej Velaga
<
[email protected]
>
Fri, 3 Feb 2012 13:45:43 +0000
(13:45 +0000)
committer
David S. Miller
<
[email protected]
>
Sat, 4 Feb 2012 20:59:30 +0000
(15:59 -0500)
Check bits 8-28 of peg_halt status register for firmware abort code.
Signed-off-by: Sritej Velaga <
[email protected]
>
Signed-off-by: Sony Chacko <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
b/drivers/net/ethernet/qlogic/qlcnic/qlcnic_main.c
index a47c70b093428f005b9cb9093679cb9256750d0b..dba95311a46200a9e0fd46b045459aa7271f8218 100644
(file)
--- 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)
QLCRD32(adapter, QLCNIC_CRB_PEG_NET_3 + 0x3c),
QLCRD32(adapter, QLCNIC_CRB_PEG_NET_4 + 0x3c));
peg_status = QLCRD32(adapter, QLCNIC_PEG_HALT_STATUS1);
- if (
LSW(MSB(peg_status)
) == 0x67)
+ if (
QLCNIC_FWERROR_CODE(peg_status
) == 0x67)
dev_err(&adapter->pdev->dev,
"Firmware aborted with error code 0x00006700. "
"Device is being reset.\n");