]> git.baikalelectronics.ru Git - kernel.git/commit
Input: goodix - check the 'buffer status' bit before reading data
authorPaul Cercueil <paul@crapouillou.net>
Wed, 6 May 2015 23:52:13 +0000 (16:52 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Wed, 6 May 2015 23:54:25 +0000 (16:54 -0700)
commit9b577b64a6d12d9ef9efe4dd94bd2659fe01f048
tree241808c71b7ccde22694dd564c06a7fc4970b79f
parent789f45bf1971d8d6cf6bb46cde3c720bdcd9a1af
Input: goodix - check the 'buffer status' bit before reading data

The MSB of the first byte read via I2C at the coordinates address
indicates whether the data is valid or ready (called "buffer status" in
the datasheets) when an interrupt is raised. Previously, this bit was
ignored, which resulted in a lot of incorrect detections of "finger
removed" events.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
Acked-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c