diff options
author | Yinghai Lu <yinghai@kernel.org> | 2012-11-04 00:39:31 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2013-01-07 17:58:48 -0500 |
commit | 3c449ed0075994b3f3371f8254560428ba787efc (patch) | |
tree | d4ed374d484cc1818c47b66fb71c1955ee277ae9 /drivers/acpi | |
parent | b95168e010a405add13aa010d7c45b55dc4026c7 (diff) |
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/acpi')
-rw-r--r-- | drivers/acpi/pci_root.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/acpi/pci_root.c b/drivers/acpi/pci_root.c index 7928d4dc7056..dcbe9660e756 100644 --- a/drivers/acpi/pci_root.c +++ b/drivers/acpi/pci_root.c | |||
@@ -650,8 +650,10 @@ static int acpi_pci_root_start(struct acpi_device *device) | |||
650 | struct acpi_pci_root *root = acpi_driver_data(device); | 650 | struct acpi_pci_root *root = acpi_driver_data(device); |
651 | struct acpi_pci_driver *driver; | 651 | struct acpi_pci_driver *driver; |
652 | 652 | ||
653 | if (system_state != SYSTEM_BOOTING) | 653 | if (system_state != SYSTEM_BOOTING) { |
654 | pcibios_resource_survey_bus(root->bus); | ||
654 | pci_assign_unassigned_bus_resources(root->bus); | 655 | pci_assign_unassigned_bus_resources(root->bus); |
656 | } | ||
655 | 657 | ||
656 | mutex_lock(&acpi_pci_root_lock); | 658 | mutex_lock(&acpi_pci_root_lock); |
657 | list_for_each_entry(driver, &acpi_pci_drivers, node) | 659 | list_for_each_entry(driver, &acpi_pci_drivers, node) |