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)
committerGrazvydas Ignotas <notasas@gmail.com>
Fri, 27 Apr 2012 16:43:29 +0000 (19:43 +0300)
commit8789575c84dc8f4d600dea4873c0605de58be5c6
tree339fce4779947fbdfac017d3b7f1c82a14d39603
parent7de7e3116444e8a18b43cee206fc4f5b56bb4094
ARM: OMAP2+: powerdomain: Wait for powerdomain transition in pwrdm_state_switch()

Commit b1cbdb00d ("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