ARM: PCI: versatile: Fix PCI I/O
authorPeter Maydell <peter.maydell@linaro.org>
Thu, 22 Aug 2013 16:47:49 +0000 (17:47 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 27 Sep 2013 00:18:03 +0000 (17:18 -0700)
commitd6e770beb3489067fc68e0d468c99f0e44a42052
treeacc6f7816aa3c3cc103f729c9a4e4e5b8360bdd3
parent3e4d5c23583779763a3393ba1bcc2ad4ba481fa2
ARM: PCI: versatile: Fix PCI I/O

commit 829f9fedee30cde2ec15e88d57ec11074db791e2 upstream.

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>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Kevin Hilman <khilman@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-versatile/include/mach/platform.h
arch/arm/mach-versatile/pci.c