summaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorYijing Wang2013-01-15 04:12:22 +0100
committerBjorn Helgaas2013-01-25 17:23:08 +0100
commitfcbed0bcb216b9f134e8614f46e00649a179e042 (patch)
treecf3f18cfedbdf5e31acebf1f1639ca97ca63add5 /drivers/pci/probe.c
parentPCI: sgihp: Iterate over all devices in slot, not functions 0-7 (diff)
downloadkernel-qcow2-linux-fcbed0bcb216b9f134e8614f46e00649a179e042.tar.gz
kernel-qcow2-linux-fcbed0bcb216b9f134e8614f46e00649a179e042.tar.xz
kernel-qcow2-linux-fcbed0bcb216b9f134e8614f46e00649a179e042.zip
PCI: shpchp: Iterate over all devices in slot, not functions 0-7
Iterate through devices in a slot by using the upstream bridge's "bus->devices" list instead of assuming they are functions 0-7. It's possible there are several slots on the same pci_bus, so restrict it to only devices matching this slot's device number. ARI (which allows functions 0-255) is a PCIe-only feature, and this is a PCI hotplug driver, so we shouldn't find anything other than functions 0-7, but it's better to iterate the same way as other hotplug drivers. [bhelgaas: changelog, check PCI_SLOT, fix shpchp_unconfigure_device()] Signed-off-by: Yijing Wang <wangyijing@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/probe.c')
0 files changed, 0 insertions, 0 deletions