]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: OMAP2+: powerdomain: Wait for powerdomain transition in pwrdm_state_switch()
authorSantosh Shilimkar <santosh.shilimkar@ti.com>
Mon, 12 Mar 2012 14:34:32 +0000 (20:04 +0530)
committerPaul Walmsley <paul@pwsan.com>
Wed, 4 Apr 2012 20:44:13 +0000 (14:44 -0600)
commit2fb87a8db6f4193854ffeb7169daa6bffc9fafaa
tree706ded1890ff1d21646dd631fd154380426a624d
parentf6668f74d5b8d670730db2b990d7858425f3b63c
ARM: OMAP2+: powerdomain: Wait for powerdomain transition in pwrdm_state_switch()

Commit d57fe2502 ("OMAP: clockdomain: Wait for powerdomain to be ON
when using clockdomain force wakeup") was assuming that
pwrdm_state_switch() does wait for the powerdomain transition which is
not the case.  The missing wait for the powerdomain transition
violates the sequence which the hardware expects, which causes power
management failures on some devices.

Fix this API by adding the pwrdm_wait_transition().

Signed-off-by: Santosh Shilimkar <santosh.shilimkar@ti.com>
Cc: Rajendra Nayak <rnayak@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
[paul@pwsan.com: added some more details in the commit log]
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/powerdomain.c