PCI: Use dev->has_secondary_link to find downstream PCIe links
authorYijing Wang <wangyijing@huawei.com>
Thu, 21 May 2015 07:05:04 +0000 (15:05 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 29 May 2015 20:35:26 +0000 (15:35 -0500)
Previously we assumed that PCIe Root Ports and Downstream Ports had Links
on their secondary side.  That is true in most systems, but it is possible
to connect a switch with either an Upstream or a Downstream Port leading
downstream.

Instead of relying on the component type to identify devices that have
links leading downstream, use the "dev->has_secondary_link" field.

[bhelgaas: changelog]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/pcie/aer/aerdrv_core.c
drivers/pci/probe.c
drivers/pci/vc.c

Simple merge
Simple merge
Simple merge