]> git.baikalelectronics.ru Git - kernel.git/commit
[PATCH] powerpc: pci_64 fixes & cleanups
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 15 Nov 2005 05:05:33 +0000 (16:05 +1100)
committerPaul Mackerras <paulus@samba.org>
Wed, 16 Nov 2005 02:29:46 +0000 (13:29 +1100)
commit3f56bc7c04a7c4854bcc453d8c882b4f90d01c7d
tree565d11c2ea25d1553489d6c8a9b4d2c00e110288
parent99983b2803708399780e1bca2d14e371f7378747
[PATCH] powerpc: pci_64 fixes & cleanups

I discovered that in some cases (PowerMac for example) we wouldn't
properly map the PCI IO space on recent kernels. In addition, the code
for initializing PCI host bridges was scattered all over the place with
some duplication between platforms.

This patch fixes the problem and does a small cleanup by creating a
pcibios_alloc_controller() in pci_64.c that is similar to the one in
pci_32.c (just takes an additional device node argument) that takes care
of all the grunt allocation and initialisation work. It should work for
both boot time and dynamically allocated PHBs.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/pci_64.c
arch/powerpc/kernel/rtas_pci.c
arch/powerpc/platforms/iseries/pci.c
arch/powerpc/platforms/maple/pci.c
arch/powerpc/platforms/powermac/pci.c
include/asm-powerpc/ppc-pci.h
include/asm-ppc64/pci-bridge.h