Re: [BACKPORT 5.10 PATCH] gpiolib: cdev: clear debounce period if line set to output

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 09, 2021 at 07:33:25AM +0800, Kent Gibson wrote:
> commit 03a58ea5905fdbd93ff9e52e670d802600ba38cd upstream.
> 
> When set_config changes a line from input to output debounce is
> implicitly disabled, as debounce makes no sense for outputs, but the
> debounce period is not being cleared and is still reported in the
> line info.
> 
> So clear the debounce period when the debouncer is stopped in
> edge_detector_stop().
> 
> Fixes: 65cff7046406 ("gpiolib: cdev: support setting debounce")
> Cc: stable@xxxxxxxxxxxxxxx
> Signed-off-by: Kent Gibson <warthog618@xxxxxxxxx>
> Reviewed-by: Linus Walleij <linus.walleij@xxxxxxxxxx>
> Signed-off-by: Bartosz Golaszewski <bgolaszewski@xxxxxxxxxxxx>
> ---
>  drivers/gpio/gpiolib-cdev.c | 2 ++
>  1 file changed, 2 insertions(+)

Now applied, thanks.

greg k-h



[Index of Archives]     [Linux Kernel]     [Kernel Development Newbies]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Hiking]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux