gpio-button-hotplug: gpio-keys: fix always missing first event
authorPetr Štetiar <ynezz@true.cz>
Tue, 4 Jun 2019 11:14:41 +0000 (13:14 +0200)
committerPetr Štetiar <ynezz@true.cz>
Sun, 9 Jun 2019 12:51:47 +0000 (14:51 +0200)
commit6c5bfaac84b085df813cf4e620981b94fa2a77cd
treec5b988bdf0979467361e908cd4c351c5104d97b1
parent27d234a345669f0459fc3db54e618c80b20b7998
gpio-button-hotplug: gpio-keys: fix always missing first event

Commit afc056d7dc83 ("gpio-button-hotplug: support interrupt
properties") changed the gpio-keys interrupt handling logic in a way,
that it always misses first event, which causes issues with rc.button
scripts, so this patch restores the previous behaviour.

Fixes: afc056d7dc83 ("gpio-button-hotplug: support interrupt properties")
Reported-by: Kristian Evensen <kristian.evensen@gmail.com>
Tested-by: Kuan-Yi Li <kyli.tw@gmail.com>
Signed-off-by: Petr Štetiar <ynezz@true.cz>
Signed-off-by: Christian Lamparter <chunkeey@gmail.com> [drop state check]
package/kernel/gpio-button-hotplug/src/gpio-button-hotplug.c