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: 26962 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from yx-out-2122.google.com (yx-out-2122.google.com [74.125.44.26]) by bilbo.ozlabs.org (Postfix) with ESMTP id 54525B6F34 for ; Thu, 7 May 2009 11:12:55 +1000 (EST) Received: by yx-out-2122.google.com with SMTP id 33so102557yxl.11 for ; Wed, 06 May 2009 18:12:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:received:x-sender:x-apparently-to :received:received:received-spf:authentication-results:received :received:received:date:from:subject:to:cc:message-id:mime-version :content-type:content-transfer-encoding:user-agent :x-originalarrivaltime:reply-to:sender:precedence:x-google-loop :mailing-list:list-id:list-post:list-help:list-unsubscribe :x-beenthere-env:x-beenthere; bh=gVXWWUJBzbCpxiQdt8g8kfysH/1nzzcNqlyv5NJDjhE=; b=dpHnx0mU+LB9P41w83Kvh58REqM62JN8XIe/CZwN4m88VMyAmDyExM56pAyiMch4yy Kp2+QE+T8s18k/8/h+Lt2oAMM+IXwaUPSSFK0GmWAD5iw+znYsbXd/E6QAQbYcmZBm34 Ts1hbp5mBKvfkGcqKsj0bV3o3rxpQUDX+P8vw= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-sender:x-apparently-to:received-spf:authentication-results:date :from:subject:to:cc:message-id:mime-version:content-type :content-transfer-encoding:user-agent:x-originalarrivaltime:reply-to :sender:precedence:x-google-loop:mailing-list:list-id:list-post :list-help:list-unsubscribe:x-beenthere-env:x-beenthere; b=ZLgobmEJtYiUE80Ejs7INYIoz7HBF3wNBNyToe0/3KRfKddmlQzg9vObI3K1XJswK1 o9w3KnkZpzpedPgnxoqecFJtyTxECI4BJXVCkq20eFEVGchsy1lM0XrW2Nf2gsZwZ3Ju Y3OUWeKD23yvg5yTzEQA534akzB01zrV2N1cA= Received: by 10.100.12.4 with SMTP id 4mr263862anl.11.1241658769727; Wed, 06 May 2009 18:12:49 -0700 (PDT) Received: by 10.106.201.4 with SMTP id y4gr2326prf.0; Wed, 06 May 2009 18:12:49 -0700 (PDT) X-Sender: q1.kim@samsung.com X-Apparently-To: rtc-linux@googlegroups.com Received: by 10.114.199.3 with SMTP id w3mr392274waf.7.1241658769361; Wed, 06 May 2009 18:12:49 -0700 (PDT) Received: from mailout3.samsung.com (mailout3.samsung.com [203.254.224.33]) by gmr-mx.google.com with ESMTP id k32si5697857wah.2.2009.05.06.18.12.48; Wed, 06 May 2009 18:12:48 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of q1.kim@samsung.com designates 203.254.224.33 as permitted sender) client-ip=203.254.224.33; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: best guess record for domain of q1.kim@samsung.com designates 203.254.224.33 as permitted sender) smtp.mail=q1.kim@samsung.com Received: from epmmp2 (mailout3.samsung.com [203.254.224.33]) by mailout1.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTP id <0KJ900AUV215U1@mailout1.samsung.com> for rtc-linux@googlegroups.com; Thu, 07 May 2009 10:12:42 +0900 (KST) Received: from TNRNDGASPAPP1.tn.corp.samsungelectronics.net ([165.213.149.150]) by mmp2.samsung.com (iPlanet Messaging Server 5.2 Patch 2 (built Jul 14 2004)) with ESMTPA id <0KJ9006XZ2164C@mmp2.samsung.com> for rtc-linux@googlegroups.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: [rtc-linux] [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 User-Agent: Thunderbird 2.0.0.21 (X11/20090318) X-OriginalArrivalTime: 07 May 2009 01:12:42.0012 (UTC) FILETIME=[EBA9F5C0:01C9CEB0] Reply-To: rtc-linux@googlegroups.com Sender: rtc-linux@googlegroups.com Precedence: bulk X-Google-Loop: groups Mailing-List: list rtc-linux@googlegroups.com; contact rtc-linux+owner@googlegroups.com List-Id: List-Post: List-Help: List-Unsubscribe: , X-BeenThere-Env: rtc-linux@googlegroups.com X-BeenThere: rtc-linux@googlegroups.com 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; }