]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
be2net: Fix error detection logic for BE3
authorSuresh Reddy <suresh.reddy@broadcom.com>
Mon, 28 May 2018 05:26:06 +0000 (01:26 -0400)
committerBrian Maly <brian.maly@oracle.com>
Sat, 11 May 2019 03:42:15 +0000 (23:42 -0400)
Orabug: 29475071

Check for 0xE00 (RECOVERABLE_ERR) along with ARMFW UE (0x0)
in be_detect_error() to know whether the error is valid error or not

Fixes: 673c96e5a ("be2net: Fix UE detection logic for BE3")
Signed-off-by: Suresh Reddy <suresh.reddy@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
drivers/net/ethernet/emulex/benet/be_main.c

index b383bfc423a21f5c496641c9eab48b78d44adecb..6d2dc37bd266c696d16af31265e17fafafe863cc 100644 (file)
@@ -3324,7 +3324,9 @@ void be_detect_error(struct be_adapter *adapter)
                                if ((val & POST_STAGE_FAT_LOG_START)
                                     != POST_STAGE_FAT_LOG_START &&
                                    (val & POST_STAGE_ARMFW_UE)
-                                    != POST_STAGE_ARMFW_UE)
+                                    != POST_STAGE_ARMFW_UE &&
+                                   (val & POST_STAGE_RECOVERABLE_ERR)
+                                    != POST_STAGE_RECOVERABLE_ERR)
                                        return;
                        }