Skip to content

Commit 67681d0

Browse files
Michael Chandavem330
authored andcommitted
bnxt_en: Fix typo in firmware message timeout logic.
The logic that polls for the firmware message response uses a shorter sleep interval for the first few passes. But there was a typo so it was using the wrong counter (larger counter) for these short sleep passes. The result is a slightly shorter timeout period for these firmware messages than intended. Fix it by using the proper counter. Fixes: 9751e8e ("bnxt_en: reduce timeout on initial HWRM calls") Signed-off-by: Michael Chan <michael.chan@broadcom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ab01f25 commit 67681d0

File tree

1 file changed

+1
-1
lines changed
  • drivers/net/ethernet/broadcom/bnxt

1 file changed

+1
-1
lines changed

drivers/net/ethernet/broadcom/bnxt/bnxt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3903,7 +3903,7 @@ static int bnxt_hwrm_do_send_msg(struct bnxt *bp, void *msg, u32 msg_len,
39033903
if (len)
39043904
break;
39053905
/* on first few passes, just barely sleep */
3906-
if (i < DFLT_HWRM_CMD_TIMEOUT)
3906+
if (i < HWRM_SHORT_TIMEOUT_COUNTER)
39073907
usleep_range(HWRM_SHORT_MIN_TIMEOUT,
39083908
HWRM_SHORT_MAX_TIMEOUT);
39093909
else

0 commit comments

Comments
 (0)