]> 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)
commitda4fe7e53b7c9949d662dce9739a7d162cf93cb6
tree19001172cc9967c3c4f3db6654848dd42a1503ed
parent4224f1162332a2d0305ebce2197ea436a97d6e2c
pinctrl: baytrail: Rectify debounce support

The commit b28c8832ee03 ("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: b28c8832ee03 ("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