]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Do not send firmware messages if firmware is in error state.
authorMichael Chan <michael.chan@broadcom.com>
Fri, 30 Aug 2019 03:55:02 +0000 (23:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Fri, 30 Aug 2019 21:02:19 +0000 (14:02 -0700)
commit1c3cceb14c30d0e6d5f8062d37f808347ef9c98f
treefc8fb0d4b1d7bf90c79c6959ea410b5741673983
parentbbd2038a7fe75af1968727a1bf33f0b147c43ce6
bnxt_en: Do not send firmware messages if firmware is in error state.

Add a flag to mark that the firmware has encountered fatal condition.
The driver will not send any more firmware messages and will return
error to the caller.  Fix up some clean up functions to continue
and not abort when the firmware message function returns error.

This is preparation work to fully handle firmware error recovery
under fatal conditions.

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
drivers/net/ethernet/broadcom/bnxt/bnxt.h