bnxt_en: Fix PCI AER error recovery flow
authorVasundhara Volam <vasundhara-v.volam@broadcom.com>
Wed, 26 Aug 2020 05:08:35 +0000 (01:08 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 12 Sep 2020 09:47:34 +0000 (11:47 +0200)
commitba13c07c58562d2c5e04928eccca01a5577ca5ba
treeccd72ce91699c9509276c27af9bda632fdeee43a
parent7f3aa14ce1c8a2a2d22da48ca42727d8875d6228
bnxt_en: Fix PCI AER error recovery flow

[ Upstream commit df3875ec550396974b1d8a518bd120d034738236 ]

When a PCI error is detected the PCI state could be corrupt, save
the PCI state after initialization and restore it after the slot
reset.

Fixes: 6316ea6db93d ("bnxt_en: Enable AER support.")
Signed-off-by: Vasundhara Volam <vasundhara-v.volam@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c