bnxt_en: Improve AER slot reset.
authorMichael Chan <michael.chan@broadcom.com>
Sun, 26 Apr 2020 20:24:40 +0000 (16:24 -0400)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Apr 2020 18:44:05 +0000 (11:44 -0700)
commitbae361c54fb6ac6eba3b4762f49ce14beb73ef13
tree50dd125bfe3b4feaddcf610cea5a375d727d771f
parent9e68cb0359b20f99c7b070f1d3305e5e0a9fae6d
bnxt_en: Improve AER slot reset.

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