HID: wacom: Bluetooth IRQ for Intuos Pro should handle prox/range
authorJason Gerecke <killertofu@gmail.com>
Sat, 11 Feb 2017 00:14:07 +0000 (16:14 -0800)
committerJiri Kosina <jkosina@suse.cz>
Tue, 14 Feb 2017 14:01:29 +0000 (15:01 +0100)
commita48324de6d4d41dd3974e18ee8cedac4c0dd503a
tree6feb94fdcab9434e8d8160afdb0a7e4875bd8e72
parente7deb1570a527d3c74be4e21a72b1b459605c501
HID: wacom: Bluetooth IRQ for Intuos Pro should handle prox/range

The prox/range bits included in the Bluetooth reports from the Intuos Pro
were being ignored, leading to two issues. Firstly, the pen would never
announce a BTN_TOOL_PEN event with value 0, leaving userspace to believe
the pen was always active. Secondly, the driver would continue to send
events for data while the packet's "prox" bit was clear. This can lead
to sudden incorrect pointer jumps if the pen is slowly moved away from
the tablet surface.

Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_wac.c