]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: fix the handling of PCIE-AER
authorVikas Gupta <vikas.gupta@broadcom.com>
Thu, 3 Nov 2022 23:33:25 +0000 (19:33 -0400)
committerJakub Kicinski <kuba@kernel.org>
Sat, 5 Nov 2022 02:29:02 +0000 (19:29 -0700)
commit6dba8a971d464bf9f6f5bbab235c29a8807376cd
tree79ba4763f5277df83e7be21422ea9c2977ab6ff4
parentb9a46e8bf8db9f4c4044faed46d9023d0d297fdd
bnxt_en: fix the handling of PCIE-AER

Fix the sequence required for PCIE-AER. While slot reset occurs, firmware
might not be ready and the driver needs to check for its recovery.  We
also need to remap the health registers for some chips and clear the
resource reservations.  The resources will be allocated again during
bnxt_io_resume().

Fixes: 1541dc7bd15c ("bnxt_en: Fix AER recovery.")
Signed-off-by: Vikas Gupta <vikas.gupta@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt.h
drivers/net/ethernet/broadcom/bnxt/bnxt_hwrm.c