]> git.ipfire.org Git - thirdparty/kernel/stable.git/commitdiff
ARM: 8284/1: sa1100: clear RCSR_SMR on resume
authorDmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Thu, 15 Jan 2015 02:06:22 +0000 (03:06 +0100)
committerZefan Li <lizefan@huawei.com>
Fri, 19 Jun 2015 03:40:12 +0000 (11:40 +0800)
commit e461894dc2ce7778ccde1c3483c9b15a85a7fc5f upstream.

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.

Signed-off-by: Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Zefan Li <lizefan@huawei.com>
arch/arm/mach-sa1100/pm.c

index 2fa499ec6afebf52cad16e2641192029a1cf44ef..69bbe4e55aa06fa97402f72ce2db52007f94993c 100644 (file)
@@ -80,6 +80,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;
 
        /*