]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bnxt_en: Fix typo in firmware message timeout logic.
authorMichael Chan <michael.chan@broadcom.com>
Thu, 21 Feb 2019 00:07:31 +0000 (19:07 -0500)
committerBrian Maly <brian.maly@oracle.com>
Sat, 11 May 2019 03:55:32 +0000 (23:55 -0400)
commit1cbae0a3c71346a3b14db64b794a9c86fcda414e
tree1fa202aec6b50badbbb6a45b61a1a16c57499227
parent610d8cf7a291e4e46eebb6ed6a0c341b1ccfa2c1
bnxt_en: Fix typo in firmware message timeout logic.

Orabug: 29412112

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: 9751e8e71487 ("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>
Signed-off-by: Brian Maly <brian.maly@oracle.com>
Reviewed-by: Allen Pais <allen.pais@oracle.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c