Skip to content

Commit e461894

Browse files
lumagRussell King
authored andcommitted
ARM: 8284/1: 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: [email protected] Signed-off-by: Dmitry Eremin-Solenikov <[email protected]> Signed-off-by: Russell King <[email protected]>
1 parent 1ff990c commit e461894

File tree

1 file changed

+1
-0
lines changed
  • arch/arm/mach-sa1100

1 file changed

+1
-0
lines changed

arch/arm/mach-sa1100/pm.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@ static int sa11x0_pm_enter(suspend_state_t state)
8181
/*
8282
* Ensure not to come back here if it wasn't intended
8383
*/
84+
RCSR = RCSR_SMR;
8485
PSPR = 0;
8586

8687
/*

0 commit comments

Comments
 (0)