Thread (34 messages) 34 messages, 6 authors, 2020-08-27

Re: [PATCH v4 2/7] pinctrl: qcom: Use return value from irq_set_wake call

From: Stephen Boyd <hidden>
Date: 2020-08-13 07:21:11
Also in: linux-arm-msm, lkml

Quoting Maulik Shah (2020-08-13 00:17:18)
Hi,

On 8/12/2020 1:04 AM, Stephen Boyd wrote:
quoted
Quoting Maulik Shah (2020-08-10 04:20:55)
quoted
msmgpio irqchip is not using return value of irq_set_wake call.
Start using it.
Does this work when the irq parent isn't setup in a hierarchy?
yes it works fine even when parent isn't setup in hierarchy.
quoted
I seem to
recall that this was written this way because sometimes
irq_set_irq_wake() would fail for the summary irq so it was a best
effort setting of wake on the summary line.
Thanks for pointing this.

It was written this way since previously GIC driver neither had 
IRQCHIP_SKIP_SET_WAKE flag nor it implemented .irq_set_wake callback,

so the call to irq_set_irq_wake() to set_irq_wake_real() used to return 
error -ENXIO in past.

I see this is already taken care now in GIC drivers by adding 
IRQCHIP_SKIP_SET_WAKE flag.
Ok, great. Thanks for double checking.

Can you add those details to the commit message so we don't forget? And
then I'm happy to see: 

Reviewed-by: Stephen Boyd <redacted>
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help