PCI: Delay enabling bridges until they're needed
authorYinghai Lu <yinghai@kernel.org>
Mon, 22 Jul 2013 21:37:17 +0000 (14:37 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Jul 2013 18:35:03 +0000 (12:35 -0600)
commit928bea964827d7824b548c1f8e06eccbbc4d0d7d
tree13110a5f05a65aa487cee8be5bd58017986f4929
parent55ed83a615730c2578da155bc99b68f4417ffe20
PCI: Delay enabling bridges until they're needed

We currently enable PCI bridges after scanning a bus and assigning
resources.  This is often done in arch code.

This patch changes this so we don't enable a bridge until necessary, i.e.,
until we enable a PCI device behind the bridge.  We do this in the generic
pci_enable_device() path, so this also removes the arch-specific code to
enable bridges.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
13 files changed:
arch/arm/kernel/bios32.c
arch/m68k/platform/coldfire/pci.c
arch/mips/pci/pci.c
arch/sh/drivers/pci/pci.c
drivers/acpi/pci_root.c
drivers/parisc/lba_pci.c
drivers/pci/bus.c
drivers/pci/hotplug/acpiphp_glue.c
drivers/pci/pci.c
drivers/pci/probe.c
drivers/pci/setup-bus.c
drivers/pcmcia/cardbus.c
include/linux/pci.h