Yijing Wang fcbed0bcb2 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>
2013-01-25 09:23:08 -07:00
..
2012-11-28 13:16:47 -08:00
2012-07-24 12:59:30 +02:00
2012-07-24 12:59:30 +02:00
2012-11-30 17:47:25 +01:00
2008-06-10 14:37:03 -07:00
2011-01-10 08:51:44 -08:00
2012-06-20 17:28:53 -06:00