Browse Source

ARM: realview: ensure visibility of writes during reset

The various reset routines in mach-realview rely on an FPGA to
power-cycle the board after writing some magic runes to memory-mapped
registers.

This patch adds a dsb() following the writes, so that they become
visible before we mdelay(1000) in the arch_reset code. Without this
patch, the timeout would expire sporadically, causing the reset to fail.

Signed-off-by: Will Deacon <will.deacon@arm.com>
Will Deacon 14 years ago
parent
commit
5cb843ca0f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      arch/arm/mach-realview/include/mach/system.h

+ 1 - 0
arch/arm/mach-realview/include/mach/system.h

@@ -44,6 +44,7 @@ static inline void arch_reset(char mode, const char *cmd)
 	 */
 	 */
 	if (realview_reset)
 	if (realview_reset)
 		realview_reset(mode);
 		realview_reset(mode);
+	dsb();
 }
 }
 
 
 #endif
 #endif