bnxt_en: Improve firmware fatal error shutdown sequence.
authorMichael Chan <michael.chan@broadcom.com>
Mon, 25 Jan 2021 07:08:19 +0000 (02:08 -0500)
committerJakub Kicinski <kuba@kernel.org>
Tue, 26 Jan 2021 03:20:04 +0000 (19:20 -0800)
commit4f036b2e75986946117237a6baddc489dd2b3c34
tree805b6b22e019dd321787c28048712841ea5dfc02
parent38290e37297087f7ea3ef7904b8f185d77c42976
bnxt_en: Improve firmware fatal error shutdown sequence.

In the event of a fatal firmware error, firmware will notify the host
and then it will proceed to do core reset when it sees that all functions
have disabled Bus Master.  To prevent Master Aborts and other hard
errors, we need to quiesce all activities in addition to disabling Bus
Master before the chip goes into core reset.

Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Reviewed-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Acked-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c