2022-05-16 21:40:32 +00:00
|
|
|
From 7d90d02076a400f2d41b042a6af0234f262f275c 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
|
2024-03-02 18:14:22 +00:00
|
|
|
@@ -226,6 +226,9 @@
|
2022-05-16 21:40:32 +00:00
|
|
|
#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
|
|
|
|
|
2024-03-02 18:14:22 +00:00
|
|
|
@@ -1323,6 +1326,9 @@
|
2022-05-16 21:40:32 +00:00
|
|
|
#define USB_VENDOR_ID_XAT 0x2505
|
|
|
|
#define USB_DEVICE_ID_XAT_CSR 0x0220
|
|
|
|
|
|
|
|
+#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
|
kernel: bump 5.15 to 5.15.145
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.145
No patches needed a rebase.
23.05 backport:
Rebased patch mediatek/100-dts-update-mt7622-rfb1.patch due to
changes introduced in commit e37aa926447f ("arm64: dts: mediatek:
mt7622: fix memory node warning check") in version v5.15.143 and we
jumped over from v5.15.139 directly to v5.15.145.
Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3
23.05 backport:
Stijn:
Compile-tested: ath79/generic, ipq40xx/generic, mvebu/cortexa72, ramips/mt{7621,7620,76x8}, realtek/rtl{838x,930x}, 86/64.
Run-tested: cortexa72 (RB5009UG+S+IN), mt7621 (EAP615-Wall v1), rtl838x (GS1900-10HP, GS1900-8HP, GS108T v3).
Petr:
Compile-tested: ipq807x, mvebu/cortexa9
Run-tested: turris-omnia, prpl-haze
Tested-by: Stijn Segers <foss@volatilesystems.org> [23.05 testing]
Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [23.05 refresh]
(cherry picked from commit 8de4cc77a6d5c25e48566d0203f159287ac7f3fe)
2023-12-23 11:52:06 +00:00
|
|
|
@@ -42,6 +42,7 @@ static const struct hid_device_id hid_qu
|
2022-05-16 21:40:32 +00:00
|
|
|
{ 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 },
|
kernel: bump 5.15 to 5.15.145
Changelog: https://cdn.kernel.org/pub/linux/kernel/v5.x/ChangeLog-5.15.145
No patches needed a rebase.
23.05 backport:
Rebased patch mediatek/100-dts-update-mt7622-rfb1.patch due to
changes introduced in commit e37aa926447f ("arm64: dts: mediatek:
mt7622: fix memory node warning check") in version v5.15.143 and we
jumped over from v5.15.139 directly to v5.15.145.
Build system: x86_64
Build-tested: ramips/tplink_archer-a6-v3
Run-tested: ramips/tplink_archer-a6-v3
23.05 backport:
Stijn:
Compile-tested: ath79/generic, ipq40xx/generic, mvebu/cortexa72, ramips/mt{7621,7620,76x8}, realtek/rtl{838x,930x}, 86/64.
Run-tested: cortexa72 (RB5009UG+S+IN), mt7621 (EAP615-Wall v1), rtl838x (GS1900-10HP, GS1900-8HP, GS108T v3).
Petr:
Compile-tested: ipq807x, mvebu/cortexa9
Run-tested: turris-omnia, prpl-haze
Tested-by: Stijn Segers <foss@volatilesystems.org> [23.05 testing]
Signed-off-by: John Audia <therealgraysky@proton.me>
Signed-off-by: Petr Štetiar <ynezz@true.cz> [23.05 refresh]
(cherry picked from commit 8de4cc77a6d5c25e48566d0203f159287ac7f3fe)
2023-12-23 11:52:06 +00:00
|
|
|
@@ -200,6 +201,7 @@ static const struct hid_device_id hid_qu
|
2022-05-16 21:40:32 +00:00
|
|
|
{ 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 }
|
|
|
|
};
|