OMAP2+: PM: idle clkdms only if already in idle
commitb86cfb52a145d8ddad66b98c39c6764f3883cd5a
authorRajendra Nayak <rnayak@ti.com>
Sun, 10 Jul 2011 11:56:54 +0000 (10 05:56 -0600)
committerPaul Walmsley <paul@pwsan.com>
Sun, 10 Jul 2011 11:56:54 +0000 (10 05:56 -0600)
tree1f3a173277058c22673505338af6a3675fc32c93
parent32a363c0f5b44cb4e9adfe238dfc4efa9270f7ae
OMAP2+: PM: idle clkdms only if already in idle

The omap_set_pwrdm_state function forces clockdomains
to idle, without checking the existing idle state
programmed, instead based solely on the HW capability
of the clockdomain to support idle.
This is wrong and the clockdomains should be idled
post a state_switch *only* if idle transitions on the
clockdomain were already enabled.

Signed-off-by: Rajendra Nayak <rnayak@ti.com>
Cc: Paul Walmsley <paul@pwsan.com>
Acked-by: Kevin Hilman <khilman@ti.com>
Signed-off-by: Paul Walmsley <paul@pwsan.com>
arch/arm/mach-omap2/pm.c