[POWERPC] Fix incorrect calculation of I/O window addresses
authorPaul Mackerras <paulus@samba.org>
Wed, 9 May 2007 11:47:15 +0000 (21:47 +1000)
committerPaul Mackerras <paulus@samba.org>
Thu, 10 May 2007 11:28:13 +0000 (21:28 +1000)
commit31e92e0a1f40ecbef415cd99dc886b14963dc594
tree320a7a0cd390c75d5f23100366acef0790af47c9
parent4cc81aac8bd2022d5365ad23b7ce6406676e0aa8
[POWERPC] Fix incorrect calculation of I/O window addresses

My patch "Cope with PCI host bridge I/O window not starting at 0"
introduced a bug in the calculation of the virtual addresses for the
I/O windows of PCI host bridges other than the first, because it
didn't account for the fact that hose->io_resource gets offset so that
it reflects the range of global I/O port numbers assigned to the
bridge.  This fixes it and simplifies get_bus_io_range() in the
process.

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