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)
commit8b8c3c7895dc8dcf60c58b23bc9231f4ee7887a2
tree706ded1890ff1d21646dd631fd154380426a624d
parentdd775ae2549217d3ae09363e3edb305d0fa19928
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