aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-highbank/system.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2012-10-25 22:20:37 -0500
committerOlof Johansson <olof@lixom.net>2012-11-06 06:54:36 -0800
commite32643544d8d9e7776daf0a4e803c57b54ba77f0 (patch)
treef3976752ee950575f0c28426eb1e111c282f87ed /arch/arm/mach-highbank/system.c
parent9d6163aaea4e3ddc1172b7a2d7535668cf51c795 (diff)
downloadlinaro-lsk-e32643544d8d9e7776daf0a4e803c57b54ba77f0.tar.gz
ARM: highbank: retry wfi on reset request
In some cases, an interrupt can occur and prevent cause failure to enter wfi. This causes reset to hang. Retrying the wfi should be enough to prevent reset from hanging. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Signed-off-by: Olof Johansson <olof@lixom.net>
Diffstat (limited to 'arch/arm/mach-highbank/system.c')
-rw-r--r--arch/arm/mach-highbank/system.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/arch/arm/mach-highbank/system.c b/arch/arm/mach-highbank/system.c
index 82c27230d4a..86e37cd9376 100644
--- a/arch/arm/mach-highbank/system.c
+++ b/arch/arm/mach-highbank/system.c
@@ -28,6 +28,7 @@ void highbank_restart(char mode, const char *cmd)
hignbank_set_pwr_soft_reset();
scu_power_mode(scu_base_addr, SCU_PM_POWEROFF);
- cpu_do_idle();
+ while (1)
+ cpu_do_idle();
}