PCI: Add root bus children dev's res to fail list
authorYinghai Lu <yinghai@kernel.org>
Mon, 21 Jan 2013 21:20:43 +0000 (13:20 -0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 25 Jan 2013 20:45:00 +0000 (13:45 -0700)
commita3cb999dcfe48e234927b3a541810c15dd4a890e
tree1090e6e6f0bb8123a042f10c7f62a45ddba9d0ff
parent1f96a965e30d097a25818196e33d2dce923973a7
PCI: Add root bus children dev's res to fail list

We can stop trying according to try_number now and do not need to use
root_bus checking as stop sign.

In extreme case we could need to reallocate resource for device just
under root bus.  For PCI root bus hot-add, we need to retry to assign
resources to PCI devices just under pci root bus.

Signed-off-by: Yinghai Lu <yinghai@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/pci/setup-bus.c