PCI: Factor out pci_bus_wait_crs()
authorSinan Kaya <okaya@codeaurora.org>
Tue, 29 Aug 2017 19:45:44 +0000 (14:45 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 29 Aug 2017 19:45:44 +0000 (14:45 -0500)
commit6a802ef0af94e7148c3fef71f5502654b65ed46a
tree1d166bfa2a89a1c12fdbc1b833485156d8e3f6e7
parent62bc6a6f7468bc6d6cb39177504e79df401aea76
PCI: Factor out pci_bus_wait_crs()

Configuration Request Retry Status (CRS) was previously hidden inside
pci_bus_read_dev_vendor_id().  We want to add support for CRS in other
situations, such as waiting for a device to become ready after a Function
Level Reset.

Move CRS handling into pci_bus_wait_crs() so it can be called from other
places.

Signed-off-by: Sinan Kaya <okaya@codeaurora.org>
[bhelgaas: pass pointer, not value, to pci_bus_wait_crs() so caller gets
correct Vendor ID]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c