Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-07-01 Thread Alexandre Belloni
Jun 2015 14:13:19 -0500 > Subject: [PATCH V3] drivers/rtc/rtc-ds1307.c: Support optional wakeup > interrupt > source > > With the recent pinctrl-single changes, SoCs such as Texas > Instrument's OMAP processors can treat wake-up events from deeper idle > states as inter

Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-06-25 Thread Grygorii Strashko
: Mon, 22 Jun 2015 14:13:19 -0500 Subject: [PATCH V3] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source With the recent pinctrl-single changes, SoCs such as Texas Instrument's OMAP processors can treat wake-up events from deeper idle states as interrupts. Let's add supp

Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-06-24 Thread Nishanth Menon
t. I am wrong here - code just returns 0 and ignores err. So, how about the following patch instead: (Alexandre, please do let me know if the entire series needs to be reposted): - improvement as suggested - Picked up previous acks - cleanup in probe does not need dev_pm_clear_wake_irq. -->8<--- &g

Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-06-24 Thread Grygorii Strashko
On 06/24/2015 07:07 PM, Nishanth Menon wrote: > On 06/24/2015 10:36 AM, Grygorii Strashko wrote: >> On 06/23/2015 07:15 PM, Nishanth Menon wrote: > [...] > >>> + ds1307->wakeirq = of_irq_get(node, 1); >>> + if (ds1307->wakeirq <= 0) { >>> + if (ds1307->wakeirq

Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-06-24 Thread Nishanth Menon
On 06/24/2015 10:36 AM, Grygorii Strashko wrote: > On 06/23/2015 07:15 PM, Nishanth Menon wrote: [...] >> +ds1307->wakeirq = of_irq_get(node, 1); >> +if (ds1307->wakeirq <= 0) { >> +if (ds1307->wakeirq == -EPROBE_DEFER) { >> +

Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-06-24 Thread Grygorii Strashko
On 06/23/2015 07:15 PM, Nishanth Menon wrote: With the recent pinctrl-single changes, SoCs such as Texas Instrument's OMAP processors can treat wake-up events from deeper idle states as interrupts. Let's add support for the optional second interrupt for wake-up using the generic wakeirq support

Re: [PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-06-24 Thread Tony Lindgren
* Nishanth Menon [150623 09:21]: > With the recent pinctrl-single changes, SoCs such as Texas > Instrument's OMAP processors can treat wake-up events from deeper idle > states as interrupts. > > Let's add support for the optional second interrupt for wake-up using > the generic wakeirq support ad

[PATCH V2 4/5] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-06-23 Thread Nishanth Menon
With the recent pinctrl-single changes, SoCs such as Texas Instrument's OMAP processors can treat wake-up events from deeper idle states as interrupts. Let's add support for the optional second interrupt for wake-up using the generic wakeirq support added in commit 4990d4fe327b ("PM / Wakeirq: Add

Re: drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-05-28 Thread Nishanth Menon
Hi Alexandre, On 05/28/2015 08:06 AM, Alexandre Belloni wrote: > Do you mind rebasing that one so I can apply it? > Thanks for responding. I see Tony has done a changes in [1] -> So, I will respin my series and repost. [1] http://marc.info/?l=linux-omap&m=143156023023154&w=2 -- Regards, Nishan

Re: drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2015-05-28 Thread Alexandre Belloni
Hi Nishanth, Do you mind rebasing that one so I can apply it? On 21/08/2014 at 11:12:01 -0500, Nishanth Menon wrote : > With the recent pinctrl-single changes, SoCs such as Texas > Instrument's OMAP processors can treat wake-up events from deeper idle > states as interrupts. > > Let's add suppor

Re: [PATCH] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2014-09-03 Thread Nishanth Menon
On 08/21/2014 11:12 AM, Nishanth Menon wrote: > With the recent pinctrl-single changes, SoCs such as Texas > Instrument's OMAP processors can treat wake-up events from deeper idle > states as interrupts. > > Let's add support for the optional second interrupt for wake-up > events. And then SoC can

[PATCH] drivers/rtc/rtc-ds1307.c: Support optional wakeup interrupt source

2014-08-21 Thread Nishanth Menon
With the recent pinctrl-single changes, SoCs such as Texas Instrument's OMAP processors can treat wake-up events from deeper idle states as interrupts. Let's add support for the optional second interrupt for wake-up events. And then SoC can wakeup and handle the event using it's regular handler.