ionic: fill out pci error handlers
authorShannon Nelson <shannon.nelson@amd.com>
Mon, 11 Dec 2023 18:58:04 +0000 (10:58 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 13 Dec 2023 12:35:55 +0000 (12:35 +0000)
commitc3a910e1c47a3f033f14a76624711deeb2a0cfff
treef9c4f142e72306f433a352e20ce4aa86dba311b7
parentce66172d33935df630c9b71a95cff685e12ad506
ionic: fill out pci error handlers

Set up the pci_error_handlers error_detected and resume to be useful in
handling AER events.  If the error detected is pci_channel_io_frozen we
set up to do an FLR at the end of the AER handling - this tends to clear
things up well enough that traffic can continue.  Else, let the AER/PCI
machinery do what is needed for the less serious errors seen.

Signed-off-by: Shannon Nelson <shannon.nelson@amd.com>
Reviewed-by: Brett Creeley <brett.creeley@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c