bnxt_en: Improve AER slot reset.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 26 Apr 2020 20:24:40 +0000 (16:24 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 14 May 2020 05:58:23 +0000 (07:58 +0200)
commit76737d877fabef8c8d5c3c08d29778dc011f7331
tree8b42b09ea2d75b57ae23fb0fcef6cc9696a6ecf8
parentab1c944361b4aded72513d8505e567610386842b
bnxt_en: Improve AER slot reset.

[ Upstream commit bae361c54fb6ac6eba3b4762f49ce14beb73ef13 ]

Improve the slot reset sequence by disabling the device to prevent bad
DMAs if slot reset fails.  Return the proper result instead of always
PCI_ERS_RESULT_RECOVERED to the caller.

Fixes: 6316ea6db93d ("bnxt_en: Enable AER support.")
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c