Skip to contentSkip to conversation

OMAP3: PM: ensure IO wakeups are properly disabled

PATCH Superseded Kevin Hilman 2 participants 2 messages Aug 10, 2010 – Aug 11, 2010

Subsystems (4)

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 OMAP3: PM: ensure IO wakeups are properly disabled

From: Kevin Hilman <[email protected]>

During idle, if the PER powerdomain transitions and CORE does not (as is the case with the lower C-states when using CPUidle) the IO pad wakeups are not being disabled in the idle path after they are enabled.

This patch ensures that the check for disabling IO wakeups also checks for PER transitions, matching the check done to enable IO wakeups.

Found when debugging PM/CPUidle related problems reported by Ameya Palande <[email protected]>. Problems were triggered particularily on boards with UART2 consoles (n900, Overo) since UART2 is in the PER powerdomain.

Tested on l-o master (omap3_defonfig + CONFIG_CPU_IDLE=y) as well as with current PM branch. Boards tested: n900, Overo, omap3evm.

---
This should go into 2.6.36-rc2 as it's a fix for a serious regression.

 arch/arm/mach-omap2/pm34xx.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
arch/arm/mach-omap2/pm34xx.c +3 -1
index fb4994a..7b03426 100644
@@ -480,7 +480,9 @@ void omap_sram_idle(void)
 	}
 
 	/* Disable IO-PAD and IO-CHAIN wakeup */
-	if (omap3_has_io_wakeup() && core_next_state < PWRDM_POWER_ON) {
+	if (omap3_has_io_wakeup() &&
+	    (per_next_state < PWRDM_POWER_ON ||
+	     core_next_state < PWRDM_POWER_ON)) {
 		prm_clear_mod_reg_bits(OMAP3430_EN_IO_MASK, WKUP_MOD, PM_WKEN);
 		omap3_disable_io_chain();
 	}
Signature · 1 line
1.7.2.1
Tested-by on v1 1/1
#1 lore raw
Quoted 15 lines · On Tue, 10 Aug 2010 16:53:51 -0700 Kevin Hilman <[email protected]>…

From: Kevin Hilman <[email protected]>

During idle, if the PER powerdomain transitions and CORE does not (as is the case with the lower C-states when using CPUidle) the IO pad wakeups are not being disabled in the idle path after they are enabled.

This patch ensures that the check for disabling IO wakeups also checks for PER transitions, matching the check done to enable IO wakeups.

Found when debugging PM/CPUidle related problems reported by Ameya Palande <[email protected]>. Problems were triggered particularily on boards with UART2 consoles (n900, Overo) since UART2 is in the PER powerdomain.

Quoted 6 lines

Tested on l-o master (omap3_defonfig + CONFIG_CPU_IDLE=y) as well as with current PM branch. Boards tested: n900, Overo, omap3evm.

---

I don't see the problem on N900 anymore after applying this patch. Feel free to add: