]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
Input: mpr121 - handle multiple bits change of status register
authorAkinobu Mita <akinobu.mita@gmail.com>
Sun, 15 Jan 2017 22:44:30 +0000 (14:44 -0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 11 Apr 2017 06:04:39 +0000 (08:04 +0200)
commitfecb362b8493bc7d5a9dfbdb9cad27751d959bbb
treef1ce8b3a4fe387ee63564e2063d3425b6e8c9e99
parent8fe94276a2ae2d7a0bbd569f73f403475d5acb4b
Input: mpr121 - handle multiple bits change of status register

commit 08fea55e37f58371bffc5336a59e55d1f155955a upstream.

This driver reports input events on their interrupts which are triggered
by the sensor's status register changes.  But only single bit change is
reported in the interrupt handler.  So if there are multiple bits are
changed at almost the same time, other press or release events are ignored.

This fixes it by detecting all changed bits in the status register.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Cc: Oliver Neukum <ONeukum@suse.com>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/input/keyboard/mpr121_touchkey.c