diff options
author | Sinan Kaya <okaya@codeaurora.org> | 2018-02-27 15:14:12 -0500 |
---|---|---|
committer | Bjorn Helgaas <helgaas@kernel.org> | 2018-03-05 09:10:14 -0500 |
commit | 6b2f1351af567110cec80d7c067314c633a14f50 (patch) | |
tree | 333c32d43c22310b0a758b410a7699c756e3d8be | |
parent | 01fd61c0b9bd85ab41fb60fbd781d44882ee6887 (diff) |
PCI: Wait for device to become ready after secondary bus reset
Setting Secondary Bus Reset of a downstream port sends a hot reset. PCIe
r4.0, sec 2.3.1, Request Handling Rules, indicates that a device can return
CRS Completion Status following such a reset. Wait until the device
becomes ready in that situation.
Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
Signed-off-by: Bjorn Helgaas <helgaas@kernel.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
-rw-r--r-- | drivers/pci/pci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci.c b/drivers/pci/pci.c index dde40506ffe5..0b8e8ee84bbc 100644 --- a/drivers/pci/pci.c +++ b/drivers/pci/pci.c | |||
@@ -4233,7 +4233,7 @@ int pci_reset_bridge_secondary_bus(struct pci_dev *dev) | |||
4233 | { | 4233 | { |
4234 | pcibios_reset_secondary_bus(dev); | 4234 | pcibios_reset_secondary_bus(dev); |
4235 | 4235 | ||
4236 | return 0; | 4236 | return pci_dev_wait(dev, "bus reset", PCIE_RESET_READY_POLL_MS); |
4237 | } | 4237 | } |
4238 | EXPORT_SYMBOL_GPL(pci_reset_bridge_secondary_bus); | 4238 | EXPORT_SYMBOL_GPL(pci_reset_bridge_secondary_bus); |
4239 | 4239 | ||