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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 13 Apr 2018 17:48:06 +0000 (19:48 +0200)
commit969eeef39863b6435ed80da16a2325ceb4137ae6
treea8ce7bbcb0ca94004408eb0fb94467855f404a61
parent419490af01a63e6d57d8009a813b5030457b29d0
Input: elan_i2c - clear INT before resetting controller

[ Upstream commit 4b3c7dbbfff0673e8a89575414b864d8b001d3bb ]

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