diff options
author | Kristen Accardi <kristen.c.accardi@intel.com> | 2005-12-14 18:37:26 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-01-09 21:13:20 +0100 |
commit | c64b5eead93f9d3a8ca0e9ca0ffba0b99dc565b9 (patch) | |
tree | d4debea2e49260151a78d67362805a0746e755aa /drivers/pci | |
parent | [PATCH] PCI Hotplug: fix up the sysfs file in the compaq pci hotplug driver (diff) | |
download | linux-c64b5eead93f9d3a8ca0e9ca0ffba0b99dc565b9.tar.xz linux-c64b5eead93f9d3a8ca0e9ca0ffba0b99dc565b9.zip |
[PATCH] acpiphp: only size new bus
Only size the bus that has been added.
Signed-off-by: Kristen Carlson Accardi <kristen.c.accardi@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/pci')
-rw-r--r-- | drivers/pci/hotplug/acpiphp_glue.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/pci/hotplug/acpiphp_glue.c b/drivers/pci/hotplug/acpiphp_glue.c index 8e21f6ab89a1..509a5b3ae998 100644 --- a/drivers/pci/hotplug/acpiphp_glue.c +++ b/drivers/pci/hotplug/acpiphp_glue.c @@ -794,12 +794,14 @@ static int enable_device(struct acpiphp_slot *slot) if (PCI_SLOT(dev->devfn) != slot->device) continue; if (dev->hdr_type == PCI_HEADER_TYPE_BRIDGE || - dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) + dev->hdr_type == PCI_HEADER_TYPE_CARDBUS) { max = pci_scan_bridge(bus, dev, max, pass); + if (pass && dev->subordinate) + pci_bus_size_bridges(dev->subordinate); + } } } - pci_bus_size_bridges(bus); pci_bus_assign_resources(bus); acpiphp_sanitize_bus(bus); pci_enable_bridges(bus); |