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)
committerJason Kridner <jdk@ti.com>
Thu, 15 Sep 2011 18:59:10 +0000 (14:59 -0400)
commitaf7f8bd1186276f512ae3748344f2493534ad45b
treeece3f202f3057c37790008b25496b782bc6a128d
parentb72e6bee0513c4cc6a8bfe1ecc858e9d80353530
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>
(cherry picked from commit 5cb843ca0f781b62dc9793b26926d0b8efef5576)
arch/arm/mach-realview/include/mach/system.h