PCI: Assign CardBus bus number only during the second pass
authorAndreas Noever <andreas.noever@gmail.com>
Thu, 23 Jan 2014 20:59:23 +0000 (21:59 +0100)
committerBjorn Helgaas <bhelgaas@google.com>
Tue, 11 Feb 2014 00:12:06 +0000 (17:12 -0700)
Right now the CardBus code in pci_scan_bridge() is executed during both
passes. Since we always allocate the bus number ourselves it makes sense
to put it into the second pass.

Signed-off-by: Andreas Noever <andreas.noever@gmail.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/probe.c

index 511a8f6d76363cf599551e678f711f919967859f..5dc8e1a31e4f11c32dfff0c1796e855906e2adbc 100644 (file)
@@ -831,7 +831,7 @@ int pci_scan_bridge(struct pci_bus *bus, struct pci_dev *dev, int max, int pass)
                 * do in the second pass.
                 */
                if (!pass) {
-                       if (pcibios_assign_all_busses() || broken)
+                       if (pcibios_assign_all_busses() || broken || is_cardbus)
                                /* Temporarily disable forwarding of the
                                   configuration cycles on all bridges in
                                   this bus segment to avoid possible
This page took 0.025671 seconds and 5 git commands to generate.