This prevents system hang while attempting to access suspended console. Should
most likely be fixed with proper console locking.

Signed-off-by: Tero Kristo <t-kri...@ti.com>
---
 arch/arm/mach-omap2/pm34xx.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/arch/arm/mach-omap2/pm34xx.c b/arch/arm/mach-omap2/pm34xx.c
index b9b5128..b071857 100644
--- a/arch/arm/mach-omap2/pm34xx.c
+++ b/arch/arm/mach-omap2/pm34xx.c
@@ -506,6 +506,8 @@ static int omap3_pm_begin(suspend_state_t state)
        disable_hlt();
        suspend_state = state;
        omap_uart_enable_irqs(0);
+       disable_irq(prcm_io_irq);
+       disable_irq(prcm_wkup_irq);
        return 0;
 }
 
@@ -514,6 +516,8 @@ static void omap3_pm_end(void)
        suspend_state = PM_SUSPEND_ON;
        omap_uart_enable_irqs(1);
        enable_hlt();
+       enable_irq(prcm_io_irq);
+       enable_irq(prcm_wkup_irq);
        return;
 }
 
-- 
1.7.4.1


Texas Instruments Oy, Tekniikantie 12, 02150 Espoo. Y-tunnus: 0115040-6. 
Kotipaikka: Helsinki
 

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

Reply via email to