From: Sritej Velaga Date: Fri, 3 Feb 2012 13:45:43 +0000 (+0000) Subject: qlcnic: Fix firmware abort code check. X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=97048a1f2b2f0ca2b2f690b551d5e97eeb94a0e9;p=GitHub%2Fmt8127%2Fandroid_kernel_alcatel_ttab.git qlcnic: Fix firmware abort code check. Check bits 8-28 of peg_halt status register for firmware abort code. Signed-off-by: Sritej Velaga Signed-off-by: Sony Chacko Signed-off-by: David S. Miller --- 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) 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");