]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
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)
committerKelsey Skunberg <kelsey.skunberg@canonical.com>
Thu, 17 Sep 2020 06:47:04 +0000 (00:47 -0600)
commita1236e5b9a786f019fd98a502a490bb6825e7a86
tree1b2ebf9943a7e7ef5b6e5bf5ea83051ee2440b69
parent18b4fe98e0473fa837c6b93ec8a3d567ebdc0749
bnxt_en: Fix PCI AER error recovery flow

BugLink: https://bugs.launchpad.net/bugs/1895880
[ 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>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
Signed-off-by: Kelsey Skunberg <kelsey.skunberg@canonical.com>
drivers/net/ethernet/broadcom/bnxt/bnxt.c