diff mbox

OMAP3 PM: Prevent Core off when DPLL3 autoidle is disabled

Message ID 1275057269-15863-1-git-send-email-vishwanath.bs@ti.com (mailing list archive)
State New, archived
Delegated to: Kevin Hilman
Headers show

Commit Message

Sripathy, Vishwanath May 28, 2010, 2:34 p.m. UTC
None
diff mbox

Patch

diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index b0a5d09..5b48b6c
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -461,6 +461,9 @@  void omap_sram_idle(void)
 				}
 				cm_rmw_mod_reg_bits(OMAP3430_AUTO_CORE_DPLL_MASK,
 				0x1, PLL_MOD, CM_AUTOIDLE);
+			} else if (core_next_state > PWRDM_POWER_RET) {
+				pwrdm_set_next_pwrst(core_pwrdm, PWRDM_POWER_RET);
+				core_next_state = PWRDM_POWER_RET;
 			}
 		}
 	}