]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
bnxt_en: Treat health register value 0 as valid in bnxt_try_reover_fw().
authorMichael Chan <michael.chan@broadcom.com>
Mon, 12 Apr 2021 00:18:11 +0000 (20:18 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 12 Apr 2021 20:20:38 +0000 (13:20 -0700)
commit17e1be342d46eb0b7c3df4c7e623493483080b63
treefd9060c0153c0bb6870a5a7d8f8f238288932556
parent0d770360577895a204634f01b4780e6fbf4adc95
bnxt_en: Treat health register value 0 as valid in bnxt_try_reover_fw().

The retry loop in bnxt_try_recover_fw() should not abort when the
health register value is 0.  It is a valid value that indicates the
firmware is booting up.

Fixes: 861aae786f2f ("bnxt_en: Enhance retry of the first message to the firmware.")
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
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