PCI: Include PCI-to-PCIe bridges as "Downstream Ports"
authorBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Apr 2017 12:44:51 +0000 (07:44 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Wed, 19 Apr 2017 12:44:51 +0000 (07:44 -0500)
commit9b70ae4951746146838b474c3a90722666edf4c1
treef258fee5780cff49f24d776c8602bad2a08afa88
parentdc5205ef46231e848562c9275933d7b359f515ba
PCI: Include PCI-to-PCIe bridges as "Downstream Ports"

A PCI/PCI-X to PCI Express bridge, sometimes referred to as a "reverse
bridge", is a bridge with conventional PCI or PCI-X on its primary side and
a PCI Express Port on its secondary (downstream) side.

That PCIe Port is a Downstream Port and could be connected to a slot, just
like a Root Port or a Switch Downstream Port.  Make pcie_downstream_port()
return true for them, so we can access the Slot registers in the PCIe
capability.

Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/access.c