Files
kernel_arpi/drivers
Kent Gibson 3cb8393c41 gpiolib: cdev: clear debounce period if line set to output
commit 03a58ea590 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: 65cff70464 ("gpiolib: cdev: support setting debounce")
Cc: stable@vger.kernel.org
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-02-13 13:55:01 +01:00
..
2021-01-27 11:55:12 +01:00
2021-01-06 14:56:56 +01:00
2020-12-03 10:00:23 +01:00
2021-01-19 18:27:26 +01:00
2020-12-30 11:53:53 +01:00
2021-01-17 14:17:02 +01:00
2021-02-03 23:28:45 +01:00