]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[PATCH] acpiphp: only size new bus
authorKristen Accardi <kristen.c.accardi@intel.com>
Wed, 14 Dec 2005 17:37:26 +0000 (09:37 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 9 Jan 2006 20:13:20 +0000 (12:13 -0800)
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>
drivers/pci/hotplug/acpiphp_glue.c

index 8e21f6ab89a15453fd1aacb558f119e70fe3e96a..509a5b3ae998f5dd7160448e539657dbeb9bed41 100644 (file)
@@ -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);