Thread (6 messages) 6 messages, 2 authors, 2018-03-08

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

From: JeffyChen <hidden>
Date: 2018-03-08 07:32:09
Also in: linux-input, lkml

Hi Andy,

Thanks for your reply.

On 03/07/2018 07:57 PM, Andy Shevchenko wrote:
On Tue, Mar 6, 2018 at 9:44 AM, Jeffy Chen [off-list ref] wrote:
quoted
Add support for specifying event actions to trigger wakeup when using
the gpio-keys input device as a wakeup source.

This would allow the device to configure when to wakeup the system. For
example a gpio-keys input device for pen insert, may only want to wakeup
the system when ejecting the pen.
quoted
+       bool wakeup_enabled;
quoted
+                       if (bdata->wakeup_enabled) {
This is redundant. IRQ core keeps track on this information already.

Check below as an example
aef3ad103a68 ("serial: core: remove unneeded irq_wake flag")
right, that make sense.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help