Input: elantech - fix touchpad state on resume for Lenovo N24
authorJonathan Denose <jdenose@google.com>
Fri, 3 May 2024 16:12:07 +0000 (16:12 +0000)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 28 May 2024 23:06:46 +0000 (16:06 -0700)
commita69ce592cbe0417664bc5a075205aa75c2ec1273
tree51ff51b5fbfb24a7803bf3278ffb38ef4a8a812f
parent2ec0028a1cadfb88d912435c1eb1ac5de76071f0
Input: elantech - fix touchpad state on resume for Lenovo N24

The Lenovo N24 on resume becomes stuck in a state where it
sends incorrect packets, causing elantech_packet_check_v4 to fail.
The only way for the device to resume sending the correct packets is for
it to be disabled and then re-enabled.

This change adds a dmi check to trigger this behavior on resume.

Signed-off-by: Jonathan Denose <jdenose@google.com>
Link: https://lore.kernel.org/r/20240503155020.v2.1.Ifa0e25ebf968d8f307f58d678036944141ab17e6@changeid
Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
drivers/input/mouse/elantech.c