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)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Nov 2020 10:04:03 +0000 (12:04 +0200)
commit0b74e40a4e41f3cbad76dff4c50850d47b525b26
tree56e33610be50718296c59f7bde3895d78f2e25ba
parent0fa86fc2e28227f1e64f13867e73cf864c6d25ad
pinctrl: baytrail: Avoid clearing debounce value when turning it off

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>
drivers/pinctrl/intel/pinctrl-baytrail.c