]> git.baikalelectronics.ru Git - kernel.git/commit
PCI: rcar: Fix incorrect programming of OB windows
authorAndrew Murray <andrew.murray@arm.com>
Fri, 4 Oct 2019 13:29:41 +0000 (14:29 +0100)
committerLorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Thu, 7 May 2020 08:34:37 +0000 (09:34 +0100)
commita712d6853b37486ab77ead4ea1b61e6c1982f0b0
treef8a59b000bc2893b961acb42d169e2aefc974aae
parent9b8057e7f937f20763a90a8fc2333168af101732
PCI: rcar: Fix incorrect programming of OB windows

The outbound windows (PCIEPAUR(x), PCIEPALR(x)) describe a mapping between
a CPU address (which is determined by the window number 'x') and a
programmed PCI address - Thus allowing the controller to translate CPU
accesses into PCI accesses.

However the existing code incorrectly writes the CPU address - lets fix
this by writing the PCI address instead.

For memory transactions, existing DT users describe a 1:1 identity mapping
and thus this change should have no effect. However the same isn't true for
I/O.

Link: https://lore.kernel.org/r/20191004132941.6660-1-andrew.murray@arm.com
Fixes: bb4dde5ac110 ("PCI: rcar: Add Renesas R-Car PCIe driver")
Tested-by: Marek Vasut <marek.vasut+renesas@gmail.com>
Signed-off-by: Andrew Murray <andrew.murray@arm.com>
Signed-off-by: Lorenzo Pieralisi <lorenzo.pieralisi@arm.com>
Reviewed-by: Marek Vasut <marek.vasut+renesas@gmail.com>
drivers/pci/controller/pcie-rcar.c