]> git.baikalelectronics.ru Git - kernel.git/commit
powerpc/pci: Make pcibios_allocate_bus_resources more robust
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 27 Oct 2008 19:48:44 +0000 (19:48 +0000)
committerPaul Mackerras <paulus@samba.org>
Wed, 5 Nov 2008 22:26:05 +0000 (09:26 +1100)
commit38a2b3ce7428122d6976c722de93af2ea76e9edd
treec3d9ff10fc1f8b6cd0984f908774c5ea4eeef333
parenta295208b325f1b860667213b34097f36a739d960
powerpc/pci: Make pcibios_allocate_bus_resources more robust

To properly fix PCI hotplug, it's useful to be able to make the fixup
passes on all devices whether they were just hot plugged or already
there.

However, pcibios_allocate_bus_resources() wouldn't cope well with
being called twice for a given bus.  This makes it ignore resources
that have already been allocated, along with adding a bit of debug
output.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci-common.c