[POWERPC] Fix pci_setup_phb_io_dynamic for pci_iomap
authorArnd Bergmann <arnd.bergmann@de.ibm.com>
Mon, 4 Jun 2007 18:14:39 +0000 (04:14 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 7 Jun 2007 01:44:40 +0000 (11:44 +1000)
commite7c40012b84f670ba57fe4a3f453ddecc8813e9b
treee2f353ed68597ca43e2949d3de144c6a33beded3
parentbb5db29aa0379f0f3ef857a3a3715f17261c611b
[POWERPC] Fix pci_setup_phb_io_dynamic for pci_iomap

We had a problem on a system with only dynamically allocated
PCI buses (using of_pci_phb_driver) in combination with libata.
This setup ended up having no "primary" phb, which means
that pci_io_base never got initialized and all IO port
numbers are 64 bit numbers, which is larger than the
PIO_MASK limit.

Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/kernel/of_platform.c