]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: realview: ensure visibility of writes during reset
authorWill Deacon <will.deacon@arm.com>
Wed, 20 Jul 2011 10:57:03 +0000 (11:57 +0100)
committerWill Deacon <will.deacon@arm.com>
Fri, 12 Aug 2011 14:40:57 +0000 (15:40 +0100)
commit8436cb7a9b2066191d7a978963feea626c0339b8
treed39a92f10ad51b98e989669ed47b532e85c876d0
parent2f4fbada374d0d8d5ca9f2f6a62b33ab59a4aa49
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>
arch/arm/mach-realview/include/mach/system.h