Commit d61403c2 authored by Hans de Goede's avatar Hans de Goede Committed by sanglipeng
Browse files

HID: ite: Enable QUIRK_TOUCHPAD_ON_OFF_REPORT on Acer Aspire Switch V 10

stable inclusion
from stable-v5.10.161
commit 1d5db0c322ae885bd18b73802ce34750c633adcf
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I7P7OH

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=1d5db0c322ae885bd18b73802ce34750c633adcf



--------------------------------

[ Upstream commit 9ad6645a ]

The Acer Aspire Switch V 10 (SW5-017)'s keyboard-dock uses the same
ITE controller setup as other Acer Switch 2-in-1's.

This needs special handling for the wifi on/off toggle hotkey as well as
to properly report touchpad on/off keypresses.

Add the USB-ids for the SW5-017's keyboard-dock with a quirk setting of
QUIRK_TOUCHPAD_ON_OFF_REPORT to fix both issues.

Cc: Rudolf Polzer <rpolzer@google.com>
Signed-off-by: default avatarHans de Goede <hdegoede@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 7ca416b8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1152,6 +1152,7 @@
#define USB_DEVICE_ID_SYNAPTICS_TP_V103	0x5710
#define USB_DEVICE_ID_SYNAPTICS_ACER_ONE_S1002	0x73f4
#define USB_DEVICE_ID_SYNAPTICS_ACER_ONE_S1003	0x73f5
#define USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_017	0x73f6
#define USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5	0x81a7

#define USB_VENDOR_ID_TEXAS_INSTRUMENTS	0x2047
+5 −0
Original line number Diff line number Diff line
@@ -121,6 +121,11 @@ static const struct hid_device_id ite_devices[] = {
		     USB_VENDOR_ID_SYNAPTICS,
		     USB_DEVICE_ID_SYNAPTICS_ACER_ONE_S1003),
	  .driver_data = QUIRK_TOUCHPAD_ON_OFF_REPORT },
	/* ITE8910 USB kbd ctlr, with Synaptics touchpad connected to it. */
	{ HID_DEVICE(BUS_USB, HID_GROUP_GENERIC,
		     USB_VENDOR_ID_SYNAPTICS,
		     USB_DEVICE_ID_SYNAPTICS_ACER_SWITCH5_017),
	  .driver_data = QUIRK_TOUCHPAD_ON_OFF_REPORT },
	{ }
};
MODULE_DEVICE_TABLE(hid, ite_devices);