powerpc: Fix OF parsing of 64 bits PCI addresses
commit67260ac9a397eb7c9e2980be2865912d3840b042
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>
Thu, 17 Jul 2008 05:53:31 +0000 (17 15:53 +1000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 22 Jul 2008 00:39:34 +0000 (22 10:39 +1000)
tree1a7e51cd72a8b7835eb93202b69cb2a6d0c84794
parent1856c020402f602b2bd26bcc9b77250304565b7e
powerpc: Fix OF parsing of 64 bits PCI addresses

The OF parsing code for PCI addresses isn't always treating properly
the address space indication 0b11 (ie. 0x3) as meaning 64 bits
memory space.

This means that it fails to parse addresses for PCI BARs that have
this encoding set by the firmware, which happens on some SLOF
versions and breaks offb palette handling on Powerstation.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Acked-by: Segher Boessenkool <segher@kernel.crashing.org>
arch/powerpc/kernel/pci-common.c
arch/powerpc/kernel/prom_parse.c