]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd82e87efee34a4761f7c2fd941c97c8925ca23ff
tree13110a5f05a65aa487cee8be5bd58017986f4929
parentfa375a3791939bb2982098064bd5d19963dfc350
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