]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: iproc: Convert link check to raw PCI config accessors
authorLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Wed, 28 Jun 2017 20:13:50 +0000 (15:13 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 28 Jun 2017 20:13:50 +0000 (15:13 -0500)
commit236f1313abe21ac75a5352f7f9d5be65042ac6ca
treecd7e9e602c1ee4d62701ce55c842451d3f073a2b
parent991bfebe5b38e5a8531d28deed6ef8bec5de10c4
PCI: iproc: Convert link check to raw PCI config accessors

The current iproc driver host bridge controller driver requires struct
pci_bus to be created in order to carry out PCI link checks with standard
PCI config space accessors.

This struct pci_bus dependency is fictitious and burdens the driver with
unneeded constraints (eg to use separate APIs to create and scan the root
bus).

Add PCI raw config space accessors to the iproc driver and remove the
fictitious struct pci_bus dependency.

Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: Scott Branden <sbranden@broadcom.com>
Cc: Ray Jui <rjui@broadcom.com>
Cc: Jon Mason <jonmason@broadcom.com>
drivers/pci/host/pcie-iproc.c