summaryrefslogtreecommitdiff
path: root/drivers/bus
diff options
context:
space:
mode:
authorPratyush Anand <pratyush.anand@st.com>2013-12-11 09:38:33 (GMT)
committerBjorn Helgaas <bhelgaas@google.com>2013-12-20 16:21:35 (GMT)
commitfce8591f73c6a30c231f220d1092362aae0b985c (patch)
treeeac01872fe7826851ee3b335f821a232d25584d9 /drivers/bus
parenta01ef59e131b78b0fa7af235ea958bd17e5e86ca (diff)
downloadlinux-fce8591f73c6a30c231f220d1092362aae0b985c.tar.xz
PCI: designware: Fix I/O transfers by using CPU (not realio) address
pp->io_base, which is the input of the outbound IO address translation unit, should be the CPU address. It was incorrectly programmed to the realio address. We should pass global_io_offset rather than sys->io_offset to pci_ioremap_io(), so we map the new window into the first available spot in the Linux view of the I/O space. We must also pass CPU address instead of realio address to pci_ioremap_io(). This patch fixes above issue. It has been tested with Lecroy PTC in AIC mode and Pericom PI7C9X2G303EL PCIe switch, which does not work otherwise. Tested-by: Mohit Kumar <mohit.kumar@st.com> Tested-by: Tim Harvey <tharvey@gateworks.com> Signed-off-by: Pratyush Anand <pratyush.anand@st.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Marek Vasut <marex@denx.de Reviewed-by: Jagannadha Sutradharudu Teki <jagannadh.teki@gmail.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Jingoo Han <jg1.han@samsung.com> Cc: Richard Zhu <Hong-Xing.Zhu@freescale.com>
Diffstat (limited to 'drivers/bus')
0 files changed, 0 insertions, 0 deletions