From patchwork Mon Jul 25 16:36:10 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tero Kristo X-Patchwork-Id: 1005572 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter2.kernel.org (8.14.4/8.14.4) with ESMTP id p6PGabsb000371 for ; Mon, 25 Jul 2011 16:36:45 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752540Ab1GYQgo (ORCPT ); Mon, 25 Jul 2011 12:36:44 -0400 Received: from comal.ext.ti.com ([198.47.26.152]:35177 "EHLO comal.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752458Ab1GYQgi convert rfc822-to-8bit (ORCPT ); Mon, 25 Jul 2011 12:36:38 -0400 Received: from dlep33.itg.ti.com ([157.170.170.112]) by comal.ext.ti.com (8.13.7/8.13.7) with ESMTP id p6PGacJd014436 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 25 Jul 2011 11:36:38 -0500 Received: from dlep26.itg.ti.com (smtp-le.itg.ti.com [157.170.170.27]) by dlep33.itg.ti.com (8.13.7/8.13.8) with ESMTP id p6PGacok003647 for ; Mon, 25 Jul 2011 11:36:38 -0500 (CDT) Received: from dnce72.ent.ti.com (localhost [127.0.0.1]) by dlep26.itg.ti.com (8.13.8/8.13.8) with ESMTP id p6PGaaqw009347 for ; Mon, 25 Jul 2011 11:36:37 -0500 (CDT) thread-index: AcxK6QX/Jh9vMgMKQuCBnJvhKwzxlw== Content-Class: urn:content-classes:message Importance: normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.4657 Received: from localhost.localdomain (172.24.88.14) by dnce72.ent.ti.com (137.167.131.87) with Microsoft SMTP Server (TLS) id 8.3.106.1; Mon, 25 Jul 2011 18:36:37 +0200 From: Tero Kristo To: Subject: [PATCHv6 10/11] TEMP: OMAP3: pm: disable / enable PRCM chain interrupts during wakeup from suspend Date: Mon, 25 Jul 2011 19:36:10 +0300 Message-ID: <1311611771-15093-11-git-send-email-t-kristo@ti.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1311611771-15093-1-git-send-email-t-kristo@ti.com> References: <1311611771-15093-1-git-send-email-t-kristo@ti.com> MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter2.kernel.org [140.211.167.43]); Mon, 25 Jul 2011 16:36:45 +0000 (UTC) This prevents system hang while attempting to access suspended console. Should most likely be fixed with proper console locking. Signed-off-by: Tero Kristo --- 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; }