ARM: OMAP2+: clockdomain: add pwrdm_state_switch() call to clkdm_sleep()
authorPaul Walmsley <paul@pwsan.com>
Sat, 26 Jan 2013 07:58:14 +0000 (00:58 -0700)
committerPaul Walmsley <paul@pwsan.com>
Tue, 29 Jan 2013 21:59:57 +0000 (14:59 -0700)
commit53e1cb469e6cf353aa581e6b0a36cca359ecee25
treedbd9c5666d7887a3ec8802b108c7f7afddd97ef0
parentc165a14023ecec8a68f3b87d0c3c822426065937
ARM: OMAP2+: clockdomain: add pwrdm_state_switch() call to clkdm_sleep()

In clkdm_sleep(), the powerdomain should be eligible to switch power
states right after the call to the low-level clockdomain sleep
function.  We should have been tracking that with the
pwrdm_state_switch() code, but we weren't, for whatever reason.  Fix that.

This resolves the "pwrdm state mismatch(cam_pwrdm) 3 != 0" that appears
during the OMAP4460 Pandaboard-ES PM test, e.g. here:

http://www.pwsan.com/omap/testlogs/test_v3.8-rc5/20130126003323/pm/4460pandaes/4460pandaes_log.txt

Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Tero Kristo <t-kristo@ti.com>
arch/arm/mach-omap2/clockdomain.c