powerpc/pci: Add a platform hook after probe and before resource survey
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Sun, 6 Nov 2011 18:55:57 +0000 (18:55 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Fri, 25 Nov 2011 03:32:53 +0000 (14:32 +1100)
commit491b98c315dbe39b20bd4a24a6179c42349f42c0
treed8eee6224d4f517bfcb0d3ae9ee1b24615e9bb0f
parent09c188c4f6b331dbb61a2b5bd05d4c89c733fe33
powerpc/pci: Add a platform hook after probe and before resource survey

Some platforms need to perform resource allocation using a custom algorithm
due to HW constraints, or may want to tweak things globally below a host
bridge. For example OPAL support for IODA will need to perform a
resource allocation pass that applies IODA specific segmentation
constraints to MMIO which cannot be done simply using the kernel generic
resource management code.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/include/asm/machdep.h
arch/powerpc/kernel/pci-common.c