From: Gregory CLEMENT <gregory.clement-wi1+55ScJUtKEb57/3fJTNBPR1lH4CV8@public.gmane.org>
To: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
Cc: tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org,
cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org,
balbi-l0cyMroinI0@public.gmane.org,
tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org,
linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org,
linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
Subject: Re: [PATCH] genirq: provide dummy set_irq_wake()
Date: Wed, 15 Apr 2015 10:51:15 +0200 [thread overview]
Message-ID: <552E2683.8090107@free-electrons.com> (raw)
In-Reply-To: <552E1C4A.7060503-l0cyMroinI0@public.gmane.org>
Hi Roger,
On 15/04/2015 10:07, Roger Quadros wrote:
> Hi Gregory,
>
> On 14/04/15 17:02, Gregory CLEMENT wrote:
>> Hi Roger,
>>
>> On 14/04/2015 12:13, Roger Quadros wrote:
>>> Hi Thomas,
>>>
>>> On 30/03/15 16:15, Roger Quadros wrote:
>>>> Without this system suspend is broken on systems that have
>>>> drivers calling enable/disable_irq_wake() for interrupts based off
>>>> the dummy irq hook.
>>>> (e.g. drivers/gpio/gpio-pcf857x.c)
>>>>
>>>> http://article.gmane.org/gmane.linux.kernel/1879035
>>>>
>>>> Signed-off-by: Roger Quadros <rogerq-l0cyMroinI0@public.gmane.org>
>>>
>>> Any comments on this patch?
>>
>> I read the url you pointed and I wonder why, at then end, did
>> you choose to add a dummy set_irq_wake() instead of using
>> IRQCHIP_SKIP_SET_WAKE ?
>
> You mean like this?
>
> diff --git a/kernel/irq/dummychip.c b/kernel/irq/dummychip.c
> index 988dc58..2feb6fe 100644
> --- a/kernel/irq/dummychip.c
> +++ b/kernel/irq/dummychip.c
> @@ -57,5 +57,6 @@ struct irq_chip dummy_irq_chip = {
> .irq_ack = noop,
> .irq_mask = noop,
> .irq_unmask = noop,
> + .flags = IRQCHIP_SKIP_SET_WAKE,
> };
> EXPORT_SYMBOL_GPL(dummy_irq_chip);
Yes exactly.
>
> This works as well and is better. I'll post a v2.
Thanks,
Gregory
>
> cheers,
> -roger
>
>>>
>>>> ---
>>>> kernel/irq/dummychip.c | 6 ++++++
>>>> 1 file changed, 6 insertions(+)
>>>>
>>>> diff --git a/kernel/irq/dummychip.c b/kernel/irq/dummychip.c
>>>> index 988dc58..2405d7a 100644
>>>> --- a/kernel/irq/dummychip.c
>>>> +++ b/kernel/irq/dummychip.c
>>>> @@ -32,6 +32,11 @@ static unsigned int noop_ret(struct irq_data *data)
>>>> return 0;
>>>> }
>>>>
>>>> +static int noop_int_ret(struct irq_data *data, unsigned int val)
>>>> +{
>>>> + return 0;
>>>> +}
>>>> +
>>>> /*
>>>> * Generic no controller implementation
>>>> */
>>>> @@ -57,5 +62,6 @@ struct irq_chip dummy_irq_chip = {
>>>> .irq_ack = noop,
>>>> .irq_mask = noop,
>>>> .irq_unmask = noop,
>>>> + .irq_set_wake = noop_int_ret,
>>>> };
>>>> EXPORT_SYMBOL_GPL(dummy_irq_chip);
>>>>
>>>
>>> --
>>> To unsubscribe from this list: send the line "unsubscribe linux-usb" in
>>> the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
>>> More majordomo info at http://vger.kernel.org/majordomo-info.html
>>>
>>
>>
>
--
Gregory Clement, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo-u79uwXL29TY76Z2rM5mHXA@public.gmane.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
next prev parent reply other threads:[~2015-04-15 8:51 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-03-30 13:15 [PATCH] genirq: provide dummy set_irq_wake() Roger Quadros
2015-03-30 18:06 ` Felipe Balbi
2015-03-30 18:06 ` Felipe Balbi
2015-04-14 10:13 ` Roger Quadros
2015-04-14 14:02 ` Gregory CLEMENT
2015-04-15 8:07 ` Roger Quadros
[not found] ` <552E1C4A.7060503-l0cyMroinI0@public.gmane.org>
2015-04-15 8:51 ` Gregory CLEMENT [this message]
2015-04-15 8:14 ` [PATCH v2] genirq: Set IRQCHIP_SKIP_SET_WAKE flag for dummy_irq_chip Roger Quadros
[not found] ` <552E1DD3.4040106-l0cyMroinI0@public.gmane.org>
2015-04-15 9:29 ` Gregory CLEMENT
2015-05-11 10:50 ` Geert Uytterhoeven
2015-05-11 11:14 ` Roger Quadros
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=552E2683.8090107@free-electrons.com \
--to=gregory.clement-wi1+55scjutkeb57/3fjtnbpr1lh4cv8@public.gmane.org \
--cc=balbi-l0cyMroinI0@public.gmane.org \
--cc=cw00.choi-Sze3O3UU22JBDgjK7y7TUQ@public.gmane.org \
--cc=linux-kernel-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-omap-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=linux-usb-u79uwXL29TY76Z2rM5mHXA@public.gmane.org \
--cc=rogerq-l0cyMroinI0@public.gmane.org \
--cc=tglx-hfZtesqFncYOwBW4kG4KsQ@public.gmane.org \
--cc=tony-4v6yS6AI5VpBDgjK7y7TUQ@public.gmane.org \
/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;
as well as URLs for NNTP newsgroup(s).