OSDN Git Service

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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Nov 2017 16:13:10 +0000 (17:13 +0100)
commit0a731928f2649fe2cf2b00dd4b69970b7b3f8e6d
tree6d3bf7a4bf68c943696dabbca9aee6183e3c0abc
parentffa6332b8d8002d922c06a32bd2ee8982d4c13d3
Input: mpr121 - handle multiple bits change of status register

[ Upstream commit 08fea55e37f58371bffc5336a59e55d1f155955a ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/input/keyboard/mpr121_touchkey.c