Linux on ARM based TI OMAP SoCs
 help / color / mirror / Atom feed
From: Kim Kyuwon <q1.kim@samsung.com>
To: Alexandre Rusev <source@mvista.com>, OMAP <linux-omap@vger.kernel.org>
Cc: "\"???\"" <kyungmin.park@samsung.com>,
	"\"???\"" <bhmin@samsung.com>,
	"David Brownell" <david-b@pacbell.net>,
	"Kevin Hilman" <khilman@deeprootsystems.com>,
	rtc-linux@googlegroups.com, chammoru@gmail.com
Subject: Suggestion and patch about the alarm of TWL4030-RTC
Date: Wed, 22 Apr 2009 13:52:09 +0900	[thread overview]
Message-ID: <49EEA279.2010202@samsung.com> (raw)

Hi All,

>From the twl4030_rtc_suspend() in rtc-twl4030.c, the alarm signal of TWL4030 RTC can't wake up the system form suspend.
However, I think it is more reasonable to alarm wake up the system and this is just we do.
(Mobile phone is mostly in suspend state, especially in the morning, thus alarm signal can wake up the phone!)
So I'm sending following patch.

Please give your comments.
I really want to apply this patch.

Thanks & Regards,
Kyuwon

--
>From 9d70ffc38653b1fb0dc7ae0950502e4adfe06c50 Mon Sep 17 00:00:00 2001
From: Kim Kyuwon <q1.kim@samsung.com>
Date: Wed, 22 Apr 2009 13:29:50 +0900
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

Signed-off-by: Kim Kyuwon <q1.kim@samsung.com>
---
 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;
 }
 
-- 
1.5.2.5

             reply	other threads:[~2009-04-22  4:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-22  4:52 Kim Kyuwon [this message]
2009-04-22  4:57 ` Suggestion and patch about the alarm of TWL4030-RTC David Brownell
2009-04-22  5:34   ` Kim Kyuwon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49EEA279.2010202@samsung.com \
    --to=q1.kim@samsung.com \
    --cc=bhmin@samsung.com \
    --cc=chammoru@gmail.com \
    --cc=david-b@pacbell.net \
    --cc=khilman@deeprootsystems.com \
    --cc=kyungmin.park@samsung.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=rtc-linux@googlegroups.com \
    --cc=source@mvista.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox