Re: [PATCH] Input: gpio-keys - Add shutdown callback

2019-02-05 Thread Dmitry Torokhov
On Tue, Feb 05, 2019 at 02:02:49PM -0800, Florian Fainelli wrote: > On 2/1/19 11:24 AM, Florian Fainelli wrote: > > On some platforms (e.g.: ARCH_BRCMSTB) it is possible to enter > > "poweroff" while leaving some wake-up sources enabled such as key > > presses in order to allow for the system to wa

Re: [PATCH] Input: gpio-keys - Add shutdown callback

2019-02-05 Thread Florian Fainelli
On 2/1/19 11:24 AM, Florian Fainelli wrote: > On some platforms (e.g.: ARCH_BRCMSTB) it is possible to enter > "poweroff" while leaving some wake-up sources enabled such as key > presses in order to allow for the system to wake-up. > > Wire up a .shutdown() callback which calls into the existing >

[PATCH] Input: gpio-keys - Add shutdown callback

2019-02-01 Thread Florian Fainelli
On some platforms (e.g.: ARCH_BRCMSTB) it is possible to enter "poweroff" while leaving some wake-up sources enabled such as key presses in order to allow for the system to wake-up. Wire up a .shutdown() callback which calls into the existing gpio_keys_suspend() since the logic is essentially the