PCI: Wait for device to become ready after secondary bus reset
authorSinan Kaya <okaya@codeaurora.org>
Tue, 27 Feb 2018 20:14:12 +0000 (14:14 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Mon, 5 Mar 2018 14:10:14 +0000 (08:10 -0600)
commit6b2f1351af567110cec80d7c067314c633a14f50
tree333c32d43c22310b0a758b410a7699c756e3d8be
parent01fd61c0b9bd85ab41fb60fbd781d44882ee6887
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>
drivers/pci/pci.c