diff options
author | 2013-01-15 11:12:21 +0800 | |
---|---|---|
committer | 2013-01-25 09:23:08 -0700 | |
commit | ab6380ef01983e977c147cb8bb040f57e4fe2d55 (patch) | |
tree | 29c05b6eae690ffe7f8a100e064030d0dc7743bc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | PCI: cpcihp: Iterate over all devices in slot, not functions 0-7 (diff) | |
download | linux-dev-ab6380ef01983e977c147cb8bb040f57e4fe2d55.tar.xz linux-dev-ab6380ef01983e977c147cb8bb040f57e4fe2d55.zip |
PCI: sgihp: 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 disable_slot()]
Signed-off-by: Yijing Wang <wangyijing@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions