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)
commite4c9062717feda88900b566463228d1c4910af6d
tree8456dbd01cbf68f0bf0fd97b9b79539955f3aeb3
parent056115daede8d01f71732bc7d778fb85acee8eb6
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