From: Bjorn Helgaas Date: Wed, 6 Nov 2013 17:11:48 +0000 (-0700) Subject: PCI: Add pci_upstream_bridge() X-Git-Tag: v3.13-rc1~95^2^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6bde215acfd637708142ae671843b6f0eadbc6d;p=pandora-kernel.git PCI: Add pci_upstream_bridge() This adds a pci_upstream_bridge() interface to find the PCI-to-PCI bridge upstream from a device. This is typically just "dev->bus->self", but in the case of a VF on a virtual bus, we have to start from the corresponding PF. Returns NULL if there is no upstream PCI bridge, i.e., if the device is on a root bus. Signed-off-by: Bjorn Helgaas Acked-by: Yinghai Lu --- Reading git-diff-tree failed