]> git.ipfire.org Git - people/ms/linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 6 Mar 2015 22:52:56 +0000 (14:52 -0800)
commitd53ecbb3670c0edcd21bd1c6adafee80a9cac3aa
treeeb1d9a16943bd4c09060d19dffe2f00e5c086f06
parent7da36aa36365915732662a45f808c221d1a6c111
ARM: 8284/1: sa1100: clear RCSR_SMR on resume

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: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/arm/mach-sa1100/pm.c