]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: sa1111: fix PWM state on suspend
authorRussell King <rmk+kernel@arm.linux.org.uk>
Fri, 3 Feb 2012 19:05:13 +0000 (19:05 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Thu, 9 Feb 2012 15:34:48 +0000 (15:34 +0000)
commit15a84686f28593bdff1215fb26b2fd2f59f31468
treebf6f6c2b19f247a46c12b943aa8d09d108f49c6b
parent76c7f03e9cbacb86762c9d5a9455c5704d9b7d9d
ARM: sa1111: fix PWM state on suspend

We should not write to the SA1111 registers after setting the SLEEP
bit.  Moreover, the manual says that the PWM registers should be
disabled before we enter sleep.  So, move the clearing of these
registers earlier in the suspend sequence.

Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
arch/arm/common/sa1111.c