]> git.baikalelectronics.ru Git - kernel.git/commit
Input: goodix - fix spurious key release events
authorDmitry Mastykin <dmastykin@astralinux.ru>
Tue, 24 Mar 2020 18:38:28 +0000 (11:38 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 24 Mar 2020 22:08:36 +0000 (15:08 -0700)
commit5fc6970d917db9d79bc47555e4b1bd6cfe547d09
treec30ffc60ce36d49443f3051e37bec61a37228eef
parentbd0062a9061ea19fc828dc4f4c5671d7aa4c30c8
Input: goodix - fix spurious key release events

The goodix panel sends spurious interrupts after a 'finger up' event,
which always cause a timeout.
We were exiting the interrupt handler by reporting touch_num == 0, but
this was still processed as valid and caused the code to use the
uninitialised point_data, creating spurious key release events.

Report an error from the interrupt handler so as to avoid processing
invalid point_data further.

Signed-off-by: Dmitry Mastykin <dmastykin@astralinux.ru>
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Link: https://lore.kernel.org/r/20200316075302.3759-2-dmastykin@astralinux.ru
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/touchscreen/goodix.c