]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: omap-keypad - fix keyboard debounce configuration
authorTony Lindgren <tony@atomide.com>
Mon, 3 Dec 2018 19:24:30 +0000 (11:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Dec 2018 13:09:53 +0000 (14:09 +0100)
commit7150d100dcf45a9bec14d32f5735226b73abebe8
tree01ea8237e30a1836bb83746b89484688cf7b3bb1
parent1370aabe19c1e55fbe4bb62b035be797ab7db7ad
Input: omap-keypad - fix keyboard debounce configuration

[ Upstream commit 6c3516fed7b61a3527459ccfa67fab130d910610 ]

I noticed that the Android v3.0.8 kernel on droid4 is using different
keypad values from the mainline kernel and does not have issues with
keys occasionally being stuck until pressed again. Turns out there was
an earlier patch posted to fix this as "Input: omap-keypad: errata i689:
Correct debounce time", but it was never reposted to fix use macros
for timing calculations.

This updated version is using macros, and also fixes the use of the
input clock rate to use 32768KiHz instead of 32000KiHz. And we want to
use the known good Android kernel values of 3 and 6 instead of 2 and 6
in the earlier patch.

Reported-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/keyboard/omap4-keypad.c