aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/probe.c
diff options
context:
space:
mode:
authorYu Zhao <yu.zhao@intel.com>2009-03-19 23:25:13 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2009-03-20 13:48:24 -0400
commita28724b0fb909d247229a70761c90bb37b13366a (patch)
tree7c5332004a8f52e676076b39aa03aeb45cb03f2a /drivers/pci/probe.c
parent8c5cdb6adc6688b9b8fd82ea4a5cf4674dabad79 (diff)
PCI: reserve bus range for SR-IOV device
Reserve the bus number range used by the Virtual Function when pcibios_assign_all_busses() returns true. Reviewed-by: Matthew Wilcox <willy@linux.intel.com> Signed-off-by: Yu Zhao <yu.zhao@intel.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'drivers/pci/probe.c')
-rw-r--r--drivers/pci/probe.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/pci/probe.c b/drivers/pci/probe.c
index 0471f6ea146..0ecdaea3915 100644
--- a/drivers/pci/probe.c
+++ b/drivers/pci/probe.c
@@ -1085,6 +1085,9 @@ unsigned int __devinit pci_scan_child_bus(struct pci_bus *bus)
1085 for (devfn = 0; devfn < 0x100; devfn += 8) 1085 for (devfn = 0; devfn < 0x100; devfn += 8)
1086 pci_scan_slot(bus, devfn); 1086 pci_scan_slot(bus, devfn);
1087 1087
1088 /* Reserve buses for SR-IOV capability. */
1089 max += pci_iov_bus_range(bus);
1090
1088 /* 1091 /*
1089 * After performing arch-dependent fixup of the bus, look behind 1092 * After performing arch-dependent fixup of the bus, look behind
1090 * all PCI-to-PCI bridges on this bus. 1093 * all PCI-to-PCI bridges on this bus.