]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
pinctrl: baytrail: Avoid clearing debounce value when turning it off
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Thu, 12 Nov 2020 19:03:01 +0000 (21:03 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 30 Dec 2020 10:25:44 +0000 (11:25 +0100)
commitdd809b0daab5a10fbb128ff2702da5fb0a07bb0d
treedc3c0a9d3ef71a3cdf94f80d3602246e2695aa62
parent7549ccaebe0c11cf262662d354ab8e3f6c123d9a
pinctrl: baytrail: Avoid clearing debounce value when turning it off

[ Upstream commit 0b74e40a4e41f3cbad76dff4c50850d47b525b26 ]

Baytrail pin control has a common register to set up debounce timeout.
When a pin configuration requested debounce to be disabled, the rest
of the pins may still want to have debounce enabled and thus rely on
the common timeout value. Avoid clearing debounce value when turning
it off for one pin while others may still use it.

Fixes: 658b476c742f ("pinctrl: baytrail: Add debounce configuration")
Depends-on: 04ff5a095d66 ("pinctrl: baytrail: Rectify debounce support")
Depends-on: 827e1579e1d5 ("pinctrl: baytrail: Rectify debounce support (part 2)")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/pinctrl/intel/pinctrl-baytrail.c