]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: alps: allow incoming reports when only the trackstick is opened
authorBenjamin Tissoires <benjamin.tissoires@redhat.com>
Fri, 12 Oct 2018 14:05:25 +0000 (16:05 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 Nov 2018 15:13:02 +0000 (16:13 +0100)
commit67b261d76df33d8f6f84754db0078cd9be7b3e34
tree080c953b0562231f05f58bf7d5e434af1a8fb3e1
parent3b7b23827dfbcf4d9b0e004016940586a9cc6639
HID: alps: allow incoming reports when only the trackstick is opened

[ Upstream commit 7dd8db68949a7acc5bd528ee0ecb8f8720f49921 ]

If userspace only reads the trackstick node, and no one is listening to
the touchpad nor the hidraw node then, the device is not powered on.

Add open/close callbacks to allow users to disable the touchpad in Gnome
while keeping the trackstick active.

Link: https://bugzilla.redhat.com/show_bug.cgi?id=1559632
Link: https://gitlab.gnome.org/GNOME/mutter/issues/128
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/hid/hid-alps.c