Thread (54 messages) 54 messages, 9 authors, 2014-01-16
STALE4545d REVIEWED: 1 (0M)

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

From: Jagan Teki <hidden>
Date: 2013-12-11 11:29:44
Also in: linux-pci

On Wed, Dec 11, 2013 at 3:33 PM, Marek Vasut [off-list ref] wrote:
On Wednesday, December 11, 2013 at 10:38:33 AM, Mohit Kumar wrote:
quoted
From: Pratyush Anand <redacted>

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 <redacted>
Tested-by: Mohit Kumar <redacted>
Tested-by: Tim Harvey <tharvey@gateworks.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Marek Vasut <marex@denx.de>
Cc: Richard Zhu <redacted>
Cc: linux-pci at vger.kernel.org
Cc: spear-devel at list.st.com
Acked-by: Marek Vasut <marex@denx.de>

Best regards,
Marek Vasut
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Acked-by: Jagannadha Sutradharudu Teki <redacted>

-- 
Thanks,
Jagan.
--------
Jagannadha Sutradharudu Teki,
E: jagannadh.teki at gmail.com, P: +91-9676773388
Engineer - System Software Hacker
U-boot - SPI Custodian and Zynq APSOC
Ln: http://www.linkedin.com/in/jaganteki
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help