]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit3bb9e2b09c74a880e65cf93fe3da41b1a46513e8
tree1d166bfa2a89a1c12fdbc1b833485156d8e3f6e7
parentc1107fa209bac900c7a06883c199b3269162373f
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