mirror of
https://github.com/openwrt/openwrt.git
synced 2024-12-19 21:58:04 +00:00
4a2ff73177
Changelog: https://cdn.kernel.org/pub/linux/kernel/v6.x/ChangeLog-6.1.69 Removed upstreamed: generic/backport-6.1/795-v6.3-01-r8152-add-USB-device-driver-for-config-selection.patch[1] generic/backport-6.1/795-v6.3-03-r8152-avoid-to-change-cfg-for-all-devices.patch[2] generic/backport-6.1/795-v6.3-04-r8152-remove-rtl_vendor_mode-function.patch[3] generic/backport-6.1/795-v6.4-07-r8152-fix-the-autosuspend-doesn-t-work.patch[4] generic/backport-6.1/795-v6.6-11-r8152-add-vendor-device-ID-pair-for-D-Link-DUB-E250.patch[5] All other patches automatically rebased. 1. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.69&id=893597cbabfbc00ee51fd5f73e2028994f49ded6 2. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.69&id=1d82735f4bae954d5ba004994b96baec791f874f 3. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.69&id=4c2ad8e39c62c5288ca31ebf5c30e34f3bd9d044 4. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.69&id=325556d46bfd13a2fa0d304d0625be86821fd683 5. https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=v6.1.69&id=cac1218b32d7b56832dd36f7baf82f123f305a2a Build system: x86/64 Build-tested: x86/64/AMD Cezanne Run-tested: x86/64/AMD Cezanne Signed-off-by: John Audia <therealgraysky@proton.me>
64 lines
2.8 KiB
Diff
64 lines
2.8 KiB
Diff
From f66c4ef49f4d559a5b702fdd5df6259392389723 Mon Sep 17 00:00:00 2001
|
|
From: Jonathan Bell <jonathan@raspberrypi.org>
|
|
Date: Thu, 1 Aug 2019 16:41:20 +0100
|
|
Subject: [PATCH] hid: usb: Add device quirks for Freeway Airmouse T3
|
|
and MX3
|
|
|
|
These wireless mouse/keyboard combo remote control devices specify
|
|
multiple "wheel" events in their report descriptors. The wheel events
|
|
are incorrectly defined and apparently map to accelerometer data, leading
|
|
to spurious mouse scroll events being generated at an extreme rate when
|
|
the device is moved.
|
|
|
|
As a workaround, use HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE to mask
|
|
feeding the extra wheel events to the input subsystem.
|
|
|
|
See: https://github.com/raspberrypi/firmware/issues/1189
|
|
|
|
Signed-off-by: Jonathan Bell <jonathan@raspberrypi.org>
|
|
---
|
|
drivers/hid/hid-ids.h | 6 ++++++
|
|
drivers/hid/hid-quirks.c | 2 ++
|
|
2 files changed, 8 insertions(+)
|
|
|
|
--- a/drivers/hid/hid-ids.h
|
|
+++ b/drivers/hid/hid-ids.h
|
|
@@ -238,6 +238,9 @@
|
|
#define USB_VENDOR_ID_BAANTO 0x2453
|
|
#define USB_DEVICE_ID_BAANTO_MT_190W2 0x0100
|
|
|
|
+#define USB_VENDOR_ID_BEKEN 0x25a7
|
|
+#define USB_DEVICE_ID_AIRMOUSE_T3 0x2402
|
|
+
|
|
#define USB_VENDOR_ID_BELKIN 0x050d
|
|
#define USB_DEVICE_ID_FLIP_KVM 0x3201
|
|
|
|
@@ -1372,6 +1375,9 @@
|
|
#define USB_VENDOR_ID_XIAOMI 0x2717
|
|
#define USB_DEVICE_ID_MI_SILENT_MOUSE 0x5014
|
|
|
|
+#define USB_VENDOR_ID_XENTA 0x1d57
|
|
+#define USB_DEVICE_ID_AIRMOUSE_MX3 0xad03
|
|
+
|
|
#define USB_VENDOR_ID_XIN_MO 0x16c0
|
|
#define USB_DEVICE_ID_XIN_MO_DUAL_ARCADE 0x05e1
|
|
#define USB_DEVICE_ID_THT_2P_ARCADE 0x75e1
|
|
--- a/drivers/hid/hid-quirks.c
|
|
+++ b/drivers/hid/hid-quirks.c
|
|
@@ -42,6 +42,7 @@ static const struct hid_device_id hid_qu
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_CS682), HID_QUIRK_NOGET },
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_CS692), HID_QUIRK_NOGET },
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_ATEN, USB_DEVICE_ID_ATEN_UC100KM), HID_QUIRK_NOGET },
|
|
+ { HID_USB_DEVICE(USB_VENDOR_ID_BEKEN, USB_DEVICE_ID_AIRMOUSE_T3), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_MULTI_TOUCH), HID_QUIRK_MULTI_INPUT },
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE), HID_QUIRK_ALWAYS_POLL },
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_CHICONY, USB_DEVICE_ID_CHICONY_PIXART_USB_OPTICAL_MOUSE2), HID_QUIRK_ALWAYS_POLL },
|
|
@@ -200,6 +201,7 @@ static const struct hid_device_id hid_qu
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_WISEGROUP, USB_DEVICE_ID_QUAD_USB_JOYPAD), HID_QUIRK_NOGET | HID_QUIRK_MULTI_INPUT },
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_XIN_MO, USB_DEVICE_ID_XIN_MO_DUAL_ARCADE), HID_QUIRK_MULTI_INPUT },
|
|
{ HID_USB_DEVICE(USB_VENDOR_ID_LOGITECH, USB_DEVICE_ID_LOGITECH_GROUP_AUDIO), HID_QUIRK_NOGET },
|
|
+ { HID_USB_DEVICE(USB_VENDOR_ID_XENTA, USB_DEVICE_ID_AIRMOUSE_MX3), HID_QUIRK_INCREMENT_USAGE_ON_DUPLICATE },
|
|
|
|
{ 0 }
|
|
};
|