]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7534e10f999fd48e320e8a9c00f4e611e22c4da
tree4bdfcb4a4b6f4f249399cb006d99c9042f34503b
parented26f2594ed7640a248e0698fc4ecab0fac944fe
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