Skip to contentSkip to conversation

ARM: sa1100: clear RCSR_SMR on resume

PATCH New Dmitry Eremin-Solenikov 1 participant 1 message Dec 23, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: sa1100: clear RCSR_SMR on resume

StrongARM core uses RCSR SMR bit to tell to bootloader that it was reset by entering the sleep mode. After we have resumed, there is little point in having that bit enabled. Moreover, if this bit is set before reboot, the bootloader can become confused. Thus clear the SMR bit on resume just before clearing the scratchpad (resume address) register.

Cc stable at vger.kernel.org
---
 arch/arm/mach-sa1100/pm.c | 1 +
 1 file changed, 1 insertion(+)
arch/arm/mach-sa1100/pm.c +1 -0
index 6645d1e..34853d5 100644
@@ -81,6 +81,7 @@ static int sa11x0_pm_enter(suspend_state_t state)
 	/*
 	 * Ensure not to come back here if it wasn't intended
 	 */
+	RCSR = RCSR_SMR;
 	PSPR = 0;
 
 	/*
Signature · 1 line
2.1.3