Skip to content

Commit 764e2c7

Browse files
committed
Merge tag 'mvebu-fixes-3.19-6' of git://git.infradead.org/linux-mvebu into fixes
Merge "mvebu-fixes-6" from Andrew Lunn: The previous fix for Armada XP, disabling I/O coherency, broke Armada 375/38x. Only switch the PL310 to I/O coherent mode if I/O coherency is enabled. * tag 'mvebu-fixes-3.19-6' of git://git.infradead.org/linux-mvebu: ARM: mvebu: don't set the PL310 in I/O coherency mode when I/O coherency is disabled Signed-off-by: Olof Johansson <olof@lixom.net>
2 parents c6e3324 + dcad688 commit 764e2c7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

arch/arm/mach-mvebu/coherency.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,13 @@ static void __init armada_375_380_coherency_init(struct device_node *np)
189189
coherency_cpu_base = of_iomap(np, 0);
190190
arch_ioremap_caller = armada_pcie_wa_ioremap_caller;
191191

192+
/*
193+
* We should switch the PL310 to I/O coherency mode only if
194+
* I/O coherency is actually enabled.
195+
*/
196+
if (!coherency_available())
197+
return;
198+
192199
/*
193200
* Add the PL310 property "arm,io-coherent". This makes sure the
194201
* outer sync operation is not used, which allows to

0 commit comments

Comments
 (0)