]> git.hungrycats.org Git - linux/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>
Thu, 25 Jul 2024 07:53:31 +0000 (09:53 +0200)
commit90a843ccf9004c0743290e87ba794ea0ba3f9ced
tree69ad5a4579477cee2eadf7fc731d1dcd5b282dd3
parentf3d73b877aa5a6f07875a97b885bedfb6448be97
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