]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elan_i2c - clear INT before resetting controller
authorKT Liao <kt.liao@emc.com.tw>
Thu, 25 May 2017 17:06:21 +0000 (10:06 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Thu, 25 May 2017 17:11:34 +0000 (10:11 -0700)
commit7adba834cae9057c92bcd89a2319f43c72d4d336
treef9533053e6ebeb76a36abeabafb2f9da49e5221e
parenteb9929df45acca75d20947b1d6ee99f0adcf882e
Input: elan_i2c - clear INT before resetting controller

Some old touchpad FWs need to have interrupt cleared before issuing reset
command after updating firmware. We clear interrupt by attempting to read
full report from the controller, and discarding any data read.

Signed-off-by: KT Liao <kt.liao@emc.com.tw>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elan_i2c_i2c.c