]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 27 Jul 2024 08:33:42 +0000 (10:33 +0200)
commit9b6a1cb833dc8ceab3fbc45a261a8dd37c4f8013
treeba0a00f8f65d77e4bcc70f955c973046f689aebf
parentb02ba9a0b55b762bd04743a22f3d9f9645005e79
Input: elantech - fix touchpad state on resume for Lenovo N24

[ Upstream commit a69ce592cbe0417664bc5a075205aa75c2ec1273 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/input/mouse/elantech.c