PCI: Wait for device to become ready after a power management reset
authorSinan Kaya <okaya@codeaurora.org>
Tue, 27 Feb 2018 20:14:10 +0000 (14:14 -0600)
committerBjorn Helgaas <helgaas@kernel.org>
Mon, 5 Mar 2018 14:10:14 +0000 (08:10 -0600)
commitabbcf0e2a99d55433b2ee44794e6f875fc36aae2
treed6ae14b8e851c3ad627cebdfc5275f63b992a17e
parenta2758b6b8fdba5f1045f571fdb39d9bdb8ba0813
PCI: Wait for device to become ready after a power management reset

PCIe r4.0, sec 2.3.1, Request Handling Rules, indicates that a device can
return CRS Completion Status following a D3hot to D0 transition.  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