]> git.baikalelectronics.ru Git - kernel.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)
committerJiri Kosina <jkosina@suse.cz>
Wed, 13 Sep 2017 17:14:48 +0000 (19:14 +0200)
commitdf960dd5e68e823db466c294ce7a38db83fb03f9
treef2d7d95bf58d0c16668c4eecd565f297c589c881
parent248151adfc16ead26afe48f4c4dd93894dc537c1
HID: wacom: generic: Clear ABS_MISC when tool leaves proximity

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: d78da7cbd2 ("HID: wacom: generic: Support tool ID and additional tool types")
Cc: stable # v4.10 <stable@vger.kernel.org>
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>
drivers/hid/wacom_wac.c