Thread (2 messages) 2 messages, 2 authors, 2018-03-02

Re: [PATCH v2 1/3] Input: gpio-keys - add support for wakeup event action

From: JeffyChen <hidden>
Date: 2018-03-02 03:57:21
Also in: lkml

Possibly related (same subject, not in this thread)

Hi Brain,

Thanks for your reply.

On 03/02/2018 10:32 AM, Brian Norris wrote:
quoted
quoted
quoted
quoted
What about the 'else' case? Shouldn't we try to handle that?
i think the else case is for irq key, which would generate down and up
events in one irq, so it would use the same trigger type for all these 3
cases.
Not necessarily. It uses whatever trigger was provided in
platform/DT/etc. data. You could retrieve that with
irq_get_trigger_type() and try to interpret that. Or you could just
outlaw using that combination (e.g., in the binding documentation).
i think for the IRQ button case the assert/deassert/any are using the 
same irq trigger type, so it should be ok to leave the wakeup trigger 
type to be 0(not reconfigure the trigger type)...

i've made a v3 to add a comment about that, but forgot to send it :(
Brian
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help