Skip to contentSkip to conversation

be2net: Fix error detection logic for BE3

PATCH In review Suresh Reddy 2 participants 2 messages May 28, 2018 – May 29, 2018

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 be2net: Fix error detection logic for BE3

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")
---
 drivers/net/ethernet/emulex/benet/be_main.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/net/ethernet/emulex/benet/be_main.c +3 -1
index c697e79..8f75500 100644
@@ -3309,7 +3309,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;
 			}
 
Signature · 1 line
1.8.3.1
maintainer
#1 lore raw

From: Suresh Reddy <[email protected]>
Date: Mon, 28 May 2018 01:26:06 -0400

Quoted 5 lines

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")

Applied and queued up for -stable.