* [PATCH] Don't mask rtc-twl4030 alarm interrupts on shutdown
@ 2009-01-07 7:10 matti.halme
2009-01-08 12:24 ` Tony Lindgren
0 siblings, 1 reply; 3+ messages in thread
From: matti.halme @ 2009-01-07 7:10 UTC (permalink / raw)
To: a.zummo, rtc-linux; +Cc: linux-omap
A triggering RTC alarm should be able to power on a device that has been
powered off. This patch enables that on twl4030 by not masking the alarm
interrupt at shutdown.
Signed-off-by: Matti Halme <matti.halme@nokia.com>
---
drivers/rtc/rtc-twl4030.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c
index abe87a4..f5f6a97 100644
--- a/drivers/rtc/rtc-twl4030.c
+++ b/drivers/rtc/rtc-twl4030.c
@@ -505,8 +505,9 @@ static int __devexit twl4030_rtc_remove(struct
platform_device *pdev)
static void twl4030_rtc_shutdown(struct platform_device *pdev)
{
- mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M |
- BIT_RTC_INTERRUPTS_REG_IT_ALARM_M);
+ /* mask timer interrupts, but leave alarm interrupts on to
enable
+ power-on when alarm is triggered */
+ mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
}
#ifdef CONFIG_PM
--
1.4.4.4
Regards,
Matti Halme
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH] Don't mask rtc-twl4030 alarm interrupts on shutdown
2009-01-07 7:10 [PATCH] Don't mask rtc-twl4030 alarm interrupts on shutdown matti.halme
@ 2009-01-08 12:24 ` Tony Lindgren
0 siblings, 0 replies; 3+ messages in thread
From: Tony Lindgren @ 2009-01-08 12:24 UTC (permalink / raw)
To: matti.halme@nokia.com; +Cc: a.zummo, rtc-linux, linux-omap
* matti.halme@nokia.com <matti.halme@nokia.com> [090107 09:10]:
> A triggering RTC alarm should be able to power on a device that has been
> powered off. This patch enables that on twl4030 by not masking the alarm
> interrupt at shutdown.
Looks like this is already queued up for mainline by Alessandro,
so pushing to linux-omap tree while waiting for it to fall down
from mainline.
Tony
> Signed-off-by: Matti Halme <matti.halme@nokia.com>
> ---
> drivers/rtc/rtc-twl4030.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c
> index abe87a4..f5f6a97 100644
> --- a/drivers/rtc/rtc-twl4030.c
> +++ b/drivers/rtc/rtc-twl4030.c
> @@ -505,8 +505,9 @@ static int __devexit twl4030_rtc_remove(struct
> platform_device *pdev)
>
> static void twl4030_rtc_shutdown(struct platform_device *pdev)
> {
> - mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M |
> - BIT_RTC_INTERRUPTS_REG_IT_ALARM_M);
> + /* mask timer interrupts, but leave alarm interrupts on to
> enable
> + power-on when alarm is triggered */
> + mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
> }
>
> #ifdef CONFIG_PM
> --
> 1.4.4.4
>
> Regards,
> Matti Halme
> --
> To unsubscribe from this list: send the line "unsubscribe linux-omap" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <043E6D9F43E2D14682729D3AE18163F3FD9B6C@vaebe107.NOE.Nokia.com>]
* Re: [PATCH] Don't mask rtc-twl4030 alarm interrupts on shutdown
[not found] <043E6D9F43E2D14682729D3AE18163F3FD9B6C@vaebe107.NOE.Nokia.com>
@ 2008-12-29 15:54 ` Felipe Balbi
0 siblings, 0 replies; 3+ messages in thread
From: Felipe Balbi @ 2008-12-29 15:54 UTC (permalink / raw)
To: matti.halme; +Cc: a.zummo, rtc-linux, linux-omap-open-source, linux-omap
This list has moved to linux-omap@vger.kernel.org
On Mon, Dec 29, 2008 at 4:55 PM, <matti.halme@nokia.com> wrote:
> A triggering RTC alarm should be able to power on a device that has been
> powered off. This patch enables that on twl4030 by not masking the alarm
> interrupt at shutdown.
>
> Signed-off-by: Matti Halme <matti.halme at nokia.com>
> ---
> drivers/rtc/rtc-twl4030.c | 5 +++--
> 1 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/rtc/rtc-twl4030.c b/drivers/rtc/rtc-twl4030.c
> index abe87a4..f5f6a97 100644
> --- a/drivers/rtc/rtc-twl4030.c
> +++ b/drivers/rtc/rtc-twl4030.c
> @@ -505,8 +505,9 @@ static int __devexit twl4030_rtc_remove(struct platform_device *pdev)
>
> static void twl4030_rtc_shutdown(struct platform_device *pdev)
> {
> - mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M |
> - BIT_RTC_INTERRUPTS_REG_IT_ALARM_M);
> + /* mask timer interrupts, but leave alarm interrupts on to enable
> + power-on when alarm is triggered */
> + mask_rtc_irq_bit(BIT_RTC_INTERRUPTS_REG_IT_TIMER_M);
> }
>
> #ifdef CONFIG_PM
> --
> 1.4.4.4
>
> Regards,
> Matti Halme
> _______________________________________________
> Linux-omap-open-source mailing list
> Linux-omap-open-source@linux.omap.com
> http://linux.omap.com/mailman/listinfo/linux-omap-open-source
>
--
Best Regards,
Felipe Balbi
felipebalbi@users.sourceforge.net
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2009-01-08 12:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-07 7:10 [PATCH] Don't mask rtc-twl4030 alarm interrupts on shutdown matti.halme
2009-01-08 12:24 ` Tony Lindgren
[not found] <043E6D9F43E2D14682729D3AE18163F3FD9B6C@vaebe107.NOE.Nokia.com>
2008-12-29 15:54 ` Felipe Balbi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox