]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Fri, 22 Feb 2019 23:16:56 +0000 (15:16 -0800)
commit4a6b2e70cd728815880c88a52218b9fdf6880c54
treee09897c5f69147cda43aaeb2b5fcde31871a35db
parent63afcb3fde9038695f2aaba61121f0aaaf597337
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: f345a9a531af ("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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c