From patchwork Thu May 7 01:12:40 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kim kyuwon X-Patchwork-Id: 22202 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n471DCvh021833 for ; Thu, 7 May 2009 01:13:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752998AbZEGBMw (ORCPT ); Wed, 6 May 2009 21:12:52 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753795AbZEGBMw (ORCPT ); Wed, 6 May 2009 21:12:52 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:59463 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752998AbZEGBMv (ORCPT ); Wed, 6 May 2009 21:12:51 -0400 Received: from epmmp1 (mailout2.samsung.com [203.254.224.25]) by mailout1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0KJ9007NA216BX@mailout1.samsung.com>; Thu, 07 May 2009 10:12:42 +0900 (KST) Received: from TNRNDGASPAPP1.tn.corp.samsungelectronics.net ([165.213.149.150]) by mmp1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0KJ900411216T7@mmp1.samsung.com>; Thu, 07 May 2009 10:12:42 +0900 (KST) Received: from [165.213.135.232] ([165.213.135.232]) by TNRNDGASPAPP1.tn.corp.samsungelectronics.net with Microsoft SMTPSVC(6.0.3790.3959); Thu, 07 May 2009 10:12:42 +0900 Date: Thu, 07 May 2009 10:12:40 +0900 From: Kim Kyuwon Subject: [PATCH] rtc: rtc-twl4030 don't mask alarm interrupts on suspend To: LKML Cc: rtc-linux@googlegroups.com, OMAP , David Brownell , Kyungmin Park , p_gortmaker@yahoo.com, a.zummo@towertech.it Message-id: <4A023588.8080308@samsung.com> MIME-version: 1.0 Content-type: text/plain; charset=ISO-8859-1 Content-transfer-encoding: 7BIT User-Agent: Thunderbird 2.0.0.21 (X11/20090318) X-OriginalArrivalTime: 07 May 2009 01:12:42.0012 (UTC) FILETIME=[EBA9F5C0:01C9CEB0] Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org Hi All, This patch was originally sent to linux-omap mailing list. (Please refer to http://markmail.org/thread/o643d7w224zo3i7n) David Brownell said, if I've tested this: Acked-by: David Brownell Of course, I've tested. Regards, Kyuwon --- From: Kim Kyuwon Subject: [PATCH] rtc: rtc-twl4030 don't mask alarm interrupts on suspend This patch enables the alarm interrupt of TWL4030 RTC to wake up the system from suspend. You can test this patch with following command. # echo +10 > /sys/class/rtc/rtc0/wakealarm; echo mem > /sys/power/state; Signed-off-by: Kim Kyuwon --- drivers/rtc/rtc-twl4030.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c index ad35f76..c185939 100644 --- a/drivers/rtc/rtc-twl4030.c +++ b/drivers/rtc/rtc-twl4030.c @@ -495,9 +495,7 @@ static int twl4030_rtc_suspend(struct platform_device *pdev, pm_message_t state) { irqstat = rtc_irq_bits; - /* REVISIT alarm may need to wake us from sleep */ - mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M | - BIT_RTC_INTERRUPTS_REG_IT_ALARM_M); + mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M); return 0; }