[PATCH 08/12] pcie: designware: Fix IO transfers

Marek Vasut marex at denx.de
Wed Dec 11 05:03:28 EST 2013


On Wednesday, December 11, 2013 at 10:38:33 AM, Mohit Kumar wrote:
> From: Pratyush Anand <pratyush.anand at st.com>
> 
> pp->io_base which is the input of the outbound IO address translation
> unit should be the cpu address, it was programmed wrongly to 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.
> 
> Signed-off-by: Pratyush Anand <pratyush.anand at st.com>
> Tested-by: Mohit Kumar <mohit.kumar at st.com>
> Tested-by: Tim Harvey <tharvey at gateworks.com>
> Cc: Arnd Bergmann <arnd at arndb.de>
> Cc: Marek Vasut <marex at denx.de>
> Cc: Richard Zhu <Hong-Xing.Zhu at freescale.com>
> Cc: linux-pci at vger.kernel.org
> Cc: spear-devel at list.st.com

Acked-by: Marek Vasut <marex at denx.de>

Best regards,
Marek Vasut



More information about the linux-arm-kernel mailing list