]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
HID: wacom: generic: Clear ABS_MISC when tool leaves proximity
authorJason Gerecke <killertofu@gmail.com>
Fri, 8 Sep 2017 00:47:38 +0000 (17:47 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:17 +0000 (11:56 +0200)
commit5b0ad678bc05c817f7145b032b40bf935b1f821c
tree2405f516e6176ec5dbbf236673e2b015d8bfcdcc
parentbd7c1b0d060dbac733ee314b0b6969cd893ff0ff
HID: wacom: generic: Clear ABS_MISC when tool leaves proximity

commit 92380b572d95caf48f8424746aeee63c5a2b1922 upstream.

The tool ID information sent in ABS_MISC is expected to be reset to 0
when a tool leaves proximity. Not doing this can cause problems if a
tool is removed and then re-introduced. Kernel event filtering will
prevent the (identical) ABS_MISC event from being sent when the tool
re-enters proxmity. This can cause userspace to not properly set the
tool ID.

Fixes: f85c9dc678 ("HID: wacom: generic: Support tool ID and additional tool types")
Signed-off-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hid/wacom_wac.c