PCI: Add failed link recovery for device reset events
authorMaciej W. Rozycki <macro@orcam.me.uk>
Sun, 11 Jun 2023 17:20:06 +0000 (18:20 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 20 Jun 2023 15:58:53 +0000 (10:58 -0500)
commit08e3ed12ca8615b078ea19488fb45b084e5de16b
treeee1204eec8f49db171191c967102a2bbe75b87ca
parenta89c82249c3763780522f763dd2e615e2ea114de
PCI: Add failed link recovery for device reset events

Request failed link recovery with any upstream PCIe bridge where a device
has not come back after reset within PCI_RESET_WAIT time.  Reset the
polling interval if recovery succeeded, otherwise continue as usual.

[bhelgaas: inline pcie_parent_link_retrain()]
Link: https://lore.kernel.org/r/alpine.DEB.2.21.2306111631050.64925@angie.orcam.me.uk
Signed-off-by: Maciej W. Rozycki <macro@orcam.me.uk>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pci.c