]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elantech - fix protocol errors for some trackpoints in SMBus mode
authorjingle.wu <jingle.wu@emc.com.tw>
Fri, 11 Dec 2020 07:49:16 +0000 (23:49 -0800)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Fri, 11 Dec 2020 08:15:05 +0000 (00:15 -0800)
commitfe814e30ce7e383fde775634ba70e9fe5fe8cafe
tree8456dbd01cbf68f0bf0fd97b9b79539955f3aeb3
parentc3ef97b271e1e756f5d4d4d30ba8cb51987e440e
Input: elantech - fix protocol errors for some trackpoints in SMBus mode

There are some version of Elan trackpads that send incorrect data when
in SMbus mode, unless they are switched to use 0x5f reports instead of
standard 0x5e. This patch implements querying device to retrieve chips
identifying data, and switching it, when needed to the alternative
report.

Signed-off-by: Jingle Wu <jingle.wu@emc.com.tw>
Link: https://lore.kernel.org/r/20201211071531.32413-1-jingle.wu@emc.com.tw
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c
drivers/input/mouse/elantech.h