]> 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>
Tue, 29 Dec 2020 12:46:47 +0000 (13:46 +0100)
commit4db800e8fc790bb1d21aa502e1042b08c660729f
tree132c7e523829d8597cb3ebf90c7a820d2d18312b
parentd24e447e9127e11ec2d3e2bdbd067223d8186f3b
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