ARM: PCI: versatile: Fix PCI I/O
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Aug 2013 16:47:49 +0000 (17:47 +0100)
committerKevin Hilman <khilman@linaro.org>
Wed, 4 Sep 2013 21:53:26 +0000 (14:53 -0700)
commit829f9fedee30cde2ec15e88d57ec11074db791e2
tree331a7e28950bc5cfab94f8d7faabd589a0c5df90
parentf9b71fef12f0d6ac5c7051cfd87f7700f78c56b6
ARM: PCI: versatile: Fix PCI I/O

The versatile PCI controller code was confused between the
PCI I/O window (at 0x43000000) and the first PCI memory
window (at 0x44000000). Pass the correct base address to
pci_remap_io() so that PCI I/O accesses work.

Since the first PCI memory window isn't used at all (it's
an odd size), rename the associated variables and labels
so that it's clear that it isn't related to the I/O window.

This has been tested and confirmed to fix PCI I/O accesses
both on physical PB926+PCI backplane hardware and on QEMU.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Cc: stable@vger.kernel.org
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
arch/arm/mach-versatile/include/mach/platform.h
arch/arm/mach-versatile/pci.c