]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
ARM: l2c: write auxiliary control register first
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 May 2015 10:07:14 +0000 (11:07 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 15 May 2015 11:10:03 +0000 (12:10 +0100)
Before calling the controller specific configuration function, write
the auxiliary control register first, so that bits shared with other
registers (such as the prefetch control register) are not overwritten
by the later write to the auxctrl register.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/mm/cache-l2x0.c

index 1471c0f29bd359f868005bbd2339d124e2962caf..977eb9f4f77ebcaa3ff0f74d16ac2912f19a17eb 100644 (file)
@@ -115,10 +115,10 @@ static void l2c_configure(void __iomem *base)
                return;
        }
 
+       l2c_write_sec(l2x0_saved_regs.aux_ctrl, base, L2X0_AUX_CTRL);
+
        if (l2x0_data->configure)
                l2x0_data->configure(base);
-
-       l2c_write_sec(l2x0_saved_regs.aux_ctrl, base, L2X0_AUX_CTRL);
 }
 
 /*