071-ARM-l2c-write-auxiliary-control-register-first.patch 973 B

123456789101112131415161718192021222324252627282930
  1. From 7705dd256ce363f8b01429efb2f0dc4d1ee23c89 Mon Sep 17 00:00:00 2001
  2. From: Russell King <rmk+kernel@arm.linux.org.uk>
  3. Date: Fri, 15 May 2015 11:07:14 +0100
  4. Subject: [PATCH 71/74] ARM: l2c: write auxiliary control register first
  5. Before calling the controller specific configuration function, write
  6. the auxiliary control register first, so that bits shared with other
  7. registers (such as the prefetch control register) are not overwritten
  8. by the later write to the auxctrl register.
  9. Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  10. ---
  11. arch/arm/mm/cache-l2x0.c | 4 ++--
  12. 1 file changed, 2 insertions(+), 2 deletions(-)
  13. --- a/arch/arm/mm/cache-l2x0.c
  14. +++ b/arch/arm/mm/cache-l2x0.c
  15. @@ -115,10 +115,10 @@ static void l2c_configure(void __iomem *
  16. return;
  17. }
  18. + l2c_write_sec(l2x0_saved_regs.aux_ctrl, base, L2X0_AUX_CTRL);
  19. +
  20. if (l2x0_data->configure)
  21. l2x0_data->configure(base);
  22. -
  23. - l2c_write_sec(l2x0_saved_regs.aux_ctrl, base, L2X0_AUX_CTRL);
  24. }
  25. /*