All of lore.kernel.org
 help / color / mirror / Atom feed
* [RFC 1/1] omap3: PM: MPU and CORE should stay awake if there is CAM domain ACTIVE
@ 2012-01-27 10:00 Sakari Ailus
  2012-01-27 11:06 ` Jean Pihet
  2012-02-01 22:19 ` Paul Walmsley
  0 siblings, 2 replies; 7+ messages in thread
From: Sakari Ailus @ 2012-01-27 10:00 UTC (permalink / raw)
  To: linux-omap; +Cc: laurent.pinchart, khilman

MPU and CORE should stay awake if there is CAM domain ACTIVE. This is
because that module doesn't have wake-up capability.

The original patch was written by Jouni Högander in 2008 and this is the
last part left of it which is not in upstream yet.

I wonder if the approach taken in the patch is valid these days;
nevertheless it seems to do the job...

Signed-off-by: Sakari Ailus <sakari.ailus@iki.fi>
---
 arch/arm/mach-omap2/pm34xx.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index fc69875..4ef682d 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -295,6 +295,9 @@ void omap_sram_idle(void)
 	pwrdm_clear_all_prev_pwrst(core_pwrdm);
 	pwrdm_clear_all_prev_pwrst(per_pwrdm);
 
+	if (pwrdm_read_pwrst(cam_pwrdm) == PWRDM_POWER_ON)
+		clkdm_deny_idle(mpu_pwrdm->pwrdm_clkdms[0]);
+
 	mpu_next_state = pwrdm_read_next_pwrst(mpu_pwrdm);
 	switch (mpu_next_state) {
 	case PWRDM_POWER_ON:
-- 
1.7.2.5

--
To unsubscribe from this list: send the line "unsubscribe linux-omap" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2012-02-04 12:11 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-27 10:00 [RFC 1/1] omap3: PM: MPU and CORE should stay awake if there is CAM domain ACTIVE Sakari Ailus
2012-01-27 11:06 ` Jean Pihet
2012-01-27 14:03   ` Sakari Ailus
2012-01-31  9:34     ` Jean Pihet
2012-01-31 17:23       ` Kevin Hilman
2012-02-01 22:19 ` Paul Walmsley
2012-02-04 12:11   ` Sakari Ailus

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.