提交 e461894d 编写于 作者: D Dmitry Eremin-Solenikov 提交者: Russell King

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: stable@vger.kernel.org
Signed-off-by: NDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
上级 1ff990c0
...@@ -81,6 +81,7 @@ static int sa11x0_pm_enter(suspend_state_t state) ...@@ -81,6 +81,7 @@ static int sa11x0_pm_enter(suspend_state_t state)
/* /*
* Ensure not to come back here if it wasn't intended * Ensure not to come back here if it wasn't intended
*/ */
RCSR = RCSR_SMR;
PSPR = 0; PSPR = 0;
/* /*
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册