]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: baytrail: Rectify debounce support
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 10 Jan 2017 14:38:52 +0000 (16:38 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 11 Jan 2017 13:08:53 +0000 (14:08 +0100)
commit03522c7c1856944b0ee39cd4a6a9d71a6046339d
tree19001172cc9967c3c4f3db6654848dd42a1503ed
parent292646796aac9e11354f57c1cdbb1fcd8f5ac9a8
pinctrl: baytrail: Rectify debounce support

The commit 2936d9bc31a5 ("pinctrl: baytrail: Add debounce configuration")
implements debounce for Baytrail pin control, but seems wasn't tested properly.

The register which keeps debounce value is separated from the configuration
one. Writing wrong values to the latter will guarantee wrong behaviour of the
driver and even might break something physically.

Besides above there is missed case how to disable it, which is actually done
through the bit in configuration register.

Rectify implementation here by using proper register for debounce value.

Fixes: 2936d9bc31a5 ("pinctrl: baytrail: Add debounce configuration")
Cc: Cristina Ciocan <cristina.ciocan@intel.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-baytrail.c