pds_core: add attempts to fix broken PCI
authorShannon Nelson <shannon.nelson@amd.com>
Thu, 14 Sep 2023 22:32:00 +0000 (15:32 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 18 Sep 2023 08:28:22 +0000 (09:28 +0100)
commit1e18ec3e9d46e4ad2b6507c3bfc7f59e2ab449a2
tree7b8f0a72119ee669ada639b2c39853099e1f09ac
parentffa55858330f267beec995fc4f68098c91311c64
pds_core: add attempts to fix broken PCI

If we see a 0xff value from a PCI register read, we know that
the PCI connection is broken, possibly by a low level reset that
didn't go through the nice pci_error_handlers path.

Make use of the PCI cleanup code that we already have from the
reset handlers and add some detection and attempted recovery
from a broken PCI connection.

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/amd/pds_core/core.c
drivers/net/ethernet/amd/pds_core/core.h
drivers/net/ethernet/amd/pds_core/main.c