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:07:57 +0000 (12:07 +0200)
commit5f714771d01e0e0d410f06d4d192fb27b1ca0edd
treeb79f4be4f396321bfa75df5863ba043600f53a10
parent03a61f11c00213394e3c7ac62ae416d034dc728f
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