PCI: Assign resources on a per-bus basis
authorYinghai Lu <yinghai@kernel.org>
Mon, 22 Jul 2013 21:37:16 +0000 (14:37 -0700)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 25 Jul 2013 18:35:03 +0000 (12:35 -0600)
commit55ed83a615730c2578da155bc99b68f4417ffe20
treed055dc5e4298e45eede69f51ce7ac14da2267bcd
parent967260cdb13f9c0de3cf56e305b34eb363e41d5b
PCI: Assign resources on a per-bus basis

Previously, we did resource assignment globally.  This patch splits up
pci_assign_unassigned_resources() so assignment is done for each root bus
in turn.  We check each root bus individually to see whether it needs any
reassignment, and if it does, we assign resources for just that bus.

[bhelgaas: changelog]
Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
drivers/pci/setup-bus.c