From 4c4fc9df96648dac6d9b488ffad651ce46931264 Mon Sep 17 00:00:00 2001 From: Tero Kristo Date: Fri, 9 Jan 2009 17:49:04 +0200 Subject: [PATCH] OMAP3: PM: Prevented DVFS state switches when enabling off-mode resource_refresh() call tried to refresh DVFS OPP levels also. This should eventually be fixed in a way that DVFS VDD2 level is actually governed by something. Signed-off-by: Tero Kristo --- arch/arm/mach-omap2/pm34xx.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c index 7c2f280e70d..14373933a37 100644 --- a/arch/arm/mach-omap2/pm34xx.c +++ b/arch/arm/mach-omap2/pm34xx.c @@ -956,8 +956,12 @@ void omap3_pm_off_mode_enable(int enable) state = PWRDM_POWER_RET; #ifdef CONFIG_OMAP_PM_SRF + resource_lock_opp(VDD1_OPP); + resource_lock_opp(VDD2_OPP); if (resource_refresh()) printk(KERN_ERR "Error: could not refresh resources\n"); + resource_unlock_opp(VDD1_OPP); + resource_unlock_opp(VDD2_OPP); #endif list_for_each_entry(pwrst, &pwrst_list, node) { pwrst->next_state = state; -- 2.11.4.GIT