Commit 7705dd25 authored by Russell King's avatar Russell King

ARM: l2c: write auxiliary control register first

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: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent d965b0fc
...@@ -115,10 +115,10 @@ static void l2c_configure(void __iomem *base) ...@@ -115,10 +115,10 @@ static void l2c_configure(void __iomem *base)
return; return;
} }
l2c_write_sec(l2x0_saved_regs.aux_ctrl, base, L2X0_AUX_CTRL);
if (l2x0_data->configure) if (l2x0_data->configure)
l2x0_data->configure(base); l2x0_data->configure(base);
l2c_write_sec(l2x0_saved_regs.aux_ctrl, base, L2X0_AUX_CTRL);
} }
/* /*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment