From: Yinghai Lu Date: Fri, 18 May 2012 01:51:12 +0000 (-0700) Subject: ia64/PCI: register busn_res for root buses X-Git-Tag: v3.6-rc1~112^2~21^2~19 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2661b819a10d432aa6f508630ff72e31367d4f21;p=platform%2Fkernel%2Flinux-3.10.git ia64/PCI: register busn_res for root buses Add the host bridge bus number aperture from _CRS to the resource list. Like the MMIO and I/O port apertures, this is used when assigning resources to hot-added devices or in the case of conflicts. [bhelgaas: changelog] CC: Tony Luck CC: Fenghua Yu CC: linux-ia64@vger.kernel.org Signed-off-by: Yinghai Lu Signed-off-by: Bjorn Helgaas --- diff --git a/arch/ia64/pci/pci.c b/arch/ia64/pci/pci.c index 3ca9bed..d173a88 100644 --- a/arch/ia64/pci/pci.c +++ b/arch/ia64/pci/pci.c @@ -351,6 +351,8 @@ pci_acpi_scan_root(struct acpi_pci_root *root) #endif INIT_LIST_HEAD(&info.resources); + /* insert busn resource at first */ + pci_add_resource(&info.resources, &root->secondary); acpi_walk_resources(device->handle, METHOD_NAME__CRS, count_window, &windows); if (windows) { @@ -384,7 +386,7 @@ pci_acpi_scan_root(struct acpi_pci_root *root) return NULL; } - pbus->busn_res.end = pci_scan_child_bus(pbus); + pci_scan_child_bus(pbus); return pbus; out3: