]> xenbits.xensource.com Git - arm/linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 15 Nov 2017 14:53:15 +0000 (15:53 +0100)
commit260e2e82c247a6f8601f3546b6f05c55b6dc0734
treed37d2157968d18d4ca4679884dc6acea78a18330
parent0ddb64c1485668f0866892903e0218a838173b49
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