]> git.karo-electronics.de Git - linux-beck.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)
commit04ff5a095d662e0879f0eb04b9247e092210aeff
tree19001172cc9967c3c4f3db6654848dd42a1503ed
parent17fab473693e8357a9aa6fee4fbed6c13a34bd81
pinctrl: baytrail: Rectify debounce support

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