HID: wacom: Support switching from vendor-defined device mode on G9 and G11
authorJason Gerecke <killertofu@gmail.com>
Mon, 4 Apr 2016 18:26:52 +0000 (11:26 -0700)
committerJiri Kosina <jkosina@suse.cz>
Tue, 5 Apr 2016 15:20:32 +0000 (17:20 +0200)
commit326ea2a90500fe4add86c5fb95d914d46910e780
tree4bdfcb4a4b6f4f249399cb006d99c9042f34503b
parentc6fa1aeba02111ed8676494ac7cd453a03efef3c
HID: wacom: Support switching from vendor-defined device mode on G9 and G11

A tablet PC booted into Windows may have its pen/touch hardware switched
into "Wacom mode" similar to what we do with explicitly-supported hardware.
Some devices appear to maintain this state across reboots, preventing their
use with the generic HID driver. This patch adds support for detecting the
presence of the mode switch feature report used by devices based on the G9
and G11 chips and has the HID codepath always attempt to reset the device
back to sending standard HID reports.

Fixes: https://sourceforge.net/p/linuxwacom/bugs/307/
Fixes: https://sourceforge.net/p/linuxwacom/bugs/310/
Fixes: https://github.com/linuxwacom/input-wacom/issues/15

Co-authored-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jason Gerecke <jason.gerecke@wacom.com>
Reviewed-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/wacom_sys.c
drivers/hid/wacom_wac.h