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)
committerGrazvydas Ignotas <grazvydas@neurotechnology.com>
Mon, 14 Apr 2014 14:14:19 +0000 (17:14 +0300)
commita551dd56a91c6d8b80fe531b2184a4f7ab74da67
tree0c0855d46f86c1cd6b85f2d5dbcf20df89dbb8fa
parent68f04104dc2eb6f25b60378c0eb093cfc2f0a5ba
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