]> git.baikalelectronics.ru Git - kernel.git/commit
Input: elantech/SMBus - export all capabilities from the PS/2 node
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Tue, 28 May 2019 01:43:49 +0000 (18:43 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 May 2019 01:50:45 +0000 (18:50 -0700)
commit32b073fe24381b6afd27d66922654f1a2178bf26
tree600364391358035f76fa0d122488d68547fb27e6
parentd28b0a68fa0d7da18031ee0b1f92642b6be0ccd8
Input: elantech/SMBus - export all capabilities from the PS/2 node

The recent touchpads might not have all the information regarding the
characteristics through the I2C port.
On some Lenovo t480s, this results in the touchpad not being detected
as a clickpad, and on the Lenovo P52, this results in a failure while
fetching the resolution through I2C.

We need to imitate the Windows behavior: fetch the data under PS/2, and
limit the querries under I2C.

This patch prepares this by exporting the info from PS/2.

Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c
drivers/input/mouse/elantech.h