]> www.infradead.org Git - users/dwmw2/linux.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)
committerSasha Levin <alexander.levin@microsoft.com>
Wed, 23 May 2018 01:36:26 +0000 (21:36 -0400)
commit9a140899b972247074f6f6bac30b9e8a19eb1af4
tree3873ae71d215247deda88eb8752b718cbec757de
parent5c4d214e997a69fbbb41136df1ada53610518ec8
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>
drivers/input/mouse/elan_i2c_i2c.c