summaryrefslogtreecommitdiffstats
path: root/drivers/pci/bus.c
diff options
context:
space:
mode:
authorYinghai Lu <yinghai@kernel.org>2012-11-04 05:39:31 +0100
committerBjorn Helgaas <bhelgaas@google.com>2013-01-07 23:58:48 +0100
commit3c449ed0075994b3f3371f8254560428ba787efc (patch)
treed4ed374d484cc1818c47b66fb71c1955ee277ae9 /drivers/pci/bus.c
parentx86/PCI: Keep resource allocation functions after boot (diff)
downloadlinux-3c449ed0075994b3f3371f8254560428ba787efc.tar.xz
linux-3c449ed0075994b3f3371f8254560428ba787efc.zip
PCI/ACPI: Reserve firmware-allocated resources for hot-added root buses
Firmware may have assigned PCI BARs for hot-added devices, so reserve those resources before trying to allocate more. [bhelgaas: move empty weak definition here] Signed-off-by: Yinghai Lu <yinghai@kernel.org> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/pci/bus.c')
-rw-r--r--drivers/pci/bus.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/pci/bus.c b/drivers/pci/bus.c
index ad6a8b635692..847f3ca47bb8 100644
--- a/drivers/pci/bus.c
+++ b/drivers/pci/bus.c
@@ -158,6 +158,8 @@ pci_bus_alloc_resource(struct pci_bus *bus, struct resource *res,
return ret;
}
+void __weak pcibios_resource_survey_bus(struct pci_bus *bus) { }
+
/**
* pci_bus_add_device - add a single device
* @dev: device to add