[POWERPC] Fix IO space on PCI buses created from of_platform
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 15 May 2007 06:19:36 +0000 (16:19 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 17 May 2007 11:11:14 +0000 (21:11 +1000)
commitde821204dbd0a967f77213daf7b89070a65e7523
tree08113c00d59352db02d0487ddba614ffe9627f3c
parent017e3c53f116d6a0741a21624924528dc9f98418
[POWERPC] Fix IO space on PCI buses created from of_platform

This changes the way of_platform_pci creates PCI host bridges such
that it uses request_phb_iospace() for mapping the IO ports, instead
of using the dynamic hotplug stuff.  That guarantees the IO space
stays within the 2GB limit and thus doesn't break half of the legacy
drivers around.

Fixes a couple of warnings due to missing IO space while at it.

This patch is a temporary workaround for 2.6.22 before a more complete
rewrite of IO mappings is merged in 2.6.23

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