[OpenWrt-Devel] [PATCH] gpio-button-hotplug: gpio-keys: read initial state

Linus Walleij linus.walleij at linaro.org
Tue Jun 18 07:03:50 EDT 2019

On Tue, Jun 18, 2019 at 12:53 PM David Bauer <mail at david-bauer.net> wrote:
> On 17.06.19 22:26, Linus Walleij wrote:

> > I think it makes a lot of sense on mechanical pushbuttons to
> > implement generic debounce.
> This is, however, not the job of the GPIO driver or is it?

If the GPIO block supports it, GPIO provides an API to use a hardware
debounce timer.

I'e had exotic ideas like pulling the debounce support from the input
subsystem into the GPIO subsystem, so whenever a consumer asks
for debounce they will get it, sometimes with a software timer
sometimes from hardware. But it never became any more than a
pipe dream.

Linus Walleij

openwrt-devel mailing list
openwrt-devel at lists.openwrt.org

More information about the openwrt-devel mailing list