Skip to content

Commit d2c2725

Browse files
be2netdavem330
authored andcommitted
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: 673c96e ("be2net: Fix UE detection logic for BE3") Signed-off-by: Suresh Reddy <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2415f3b commit d2c2725

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

drivers/net/ethernet/emulex/benet/be_main.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3309,7 +3309,9 @@ void be_detect_error(struct be_adapter *adapter)
33093309
if ((val & POST_STAGE_FAT_LOG_START)
33103310
!= POST_STAGE_FAT_LOG_START &&
33113311
(val & POST_STAGE_ARMFW_UE)
3312-
!= POST_STAGE_ARMFW_UE)
3312+
!= POST_STAGE_ARMFW_UE &&
3313+
(val & POST_STAGE_RECOVERABLE_ERR)
3314+
!= POST_STAGE_RECOVERABLE_ERR)
33133315
return;
33143316
}
33153317

0 commit comments

Comments
 (0)