]> git.karo-electronics.de Git - linux-beck.git/blobdiff - arch/arm/mach-mvebu/coherency.c
Merge remote-tracking branch 'asoc/topic/pcm512x' into asoc-next
[linux-beck.git] / arch / arm / mach-mvebu / coherency.c
index caa21e9b8cd9819de5ff0c0e505a8a937940dfae..ccef8806bb58771b16a87dc80edc32e585597d29 100644 (file)
@@ -189,6 +189,13 @@ static void __init armada_375_380_coherency_init(struct device_node *np)
        coherency_cpu_base = of_iomap(np, 0);
        arch_ioremap_caller = armada_pcie_wa_ioremap_caller;
 
+       /*
+        * We should switch the PL310 to I/O coherency mode only if
+        * I/O coherency is actually enabled.
+        */
+       if (!coherency_available())
+               return;
+
        /*
         * Add the PL310 property "arm,io-coherent". This makes sure the
         * outer sync operation is not used, which allows to