lkml.org 
[lkml]   [2012]   [Dec]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] gpio: export 'debounce' attribute if supported by the gpio chip
From
On Thu, Dec 6, 2012 at 7:32 AM, Guenter Roeck <linux@roeck-us.net> wrote:

> Create a 'debounce' attribute if debounce is supported by the gpio
> chip and a gpio pin is exported.
>
> Signed-off-by: Guenter Roeck <linux@roeck-us.net>

Can you describe the usecase for this?

I have this problem when working as a back-up GPIO maintainer that
I don't really understand the userspace apps doing this.

I would guess something like a userspace app reading a GPIO switch
and needing to set this to avoid key bounces, but it'd be nice to know
if this is really the case.

If this is the usecase I am slightly concerned why these are not used:
drivers/input/keyboard/gpio_keys_polled.c
drivers/input/keyboard/gpio_keys.c

The latter even uses the in-kernel debounce interface.

I'd agree if this is not user input at all but something like a switch
in a factory production line.

So please help me understand this.

Yours,
Linus Walleij


\
 
 \ /
  Last update: 2012-12-07 09:42    [W:0.148 / U:0.680 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site