Skip to content

Commit 88035e5

Browse files
committed
Merge tag 'hid-for-linus-2023121201' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid
Pull HID fixes from Jiri Kosina: - Lenovo ThinkPad TrackPoint Keyboard II firmware-specific regression fix (Mikhail Khvainitski) - device-specific fixes (various authors) * tag 'hid-for-linus-2023121201' of git://git.kernel.org/pub/scm/linux/kernel/git/hid/hid: HID: apple: Add "hfd.cn" and "WKB603" to the list of non-apple keyboards HID: lenovo: Restrict detection of patched firmware only to USB cptkbd HID: Add quirk for Labtec/ODDOR/aikeec handbrake HID: i2c-hid: Add IDEA5002 to i2c_hid_acpi_blacklist[] mailmap: add address mapping for Jiri Kosina
2 parents cf52eed + df83a0d commit 88035e5

6 files changed

Lines changed: 14 additions & 1 deletion

File tree

.mailmap

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,9 @@ Jens Osterkamp <Jens.Osterkamp@de.ibm.com>
266266
Jernej Skrabec <jernej.skrabec@gmail.com> <jernej.skrabec@siol.net>
267267
Jessica Zhang <quic_jesszhan@quicinc.com> <jesszhan@codeaurora.org>
268268
Jilai Wang <quic_jilaiw@quicinc.com> <jilaiw@codeaurora.org>
269+
Jiri Kosina <jikos@kernel.org> <jikos@jikos.cz>
270+
Jiri Kosina <jikos@kernel.org> <jkosina@suse.cz>
271+
Jiri Kosina <jikos@kernel.org> <jkosina@suse.com>
269272
Jiri Pirko <jiri@resnulli.us> <jiri@nvidia.com>
270273
Jiri Pirko <jiri@resnulli.us> <jiri@mellanox.com>
271274
Jiri Pirko <jiri@resnulli.us> <jpirko@redhat.com>

drivers/hid/hid-apple.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,8 @@ static const struct apple_non_apple_keyboard non_apple_keyboards[] = {
347347
{ "Hailuck" },
348348
{ "Jamesdonkey" },
349349
{ "A3R" },
350+
{ "hfd.cn" },
351+
{ "WKB603" },
350352
};
351353

352354
static bool apple_is_non_apple_keyboard(struct hid_device *hdev)

drivers/hid/hid-ids.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -740,6 +740,7 @@
740740

741741
#define USB_VENDOR_ID_LABTEC 0x1020
742742
#define USB_DEVICE_ID_LABTEC_WIRELESS_KEYBOARD 0x0006
743+
#define USB_DEVICE_ID_LABTEC_ODDOR_HANDBRAKE 0x8888
743744

744745
#define USB_VENDOR_ID_LAVIEW 0x22D4
745746
#define USB_DEVICE_ID_GLORIOUS_MODEL_I 0x1503

drivers/hid/hid-lenovo.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,8 @@ static int lenovo_event_cptkbd(struct hid_device *hdev,
692692
* so set middlebutton_state to 3
693693
* to never apply workaround anymore
694694
*/
695-
if (cptkbd_data->middlebutton_state == 1 &&
695+
if (hdev->product == USB_DEVICE_ID_LENOVO_CUSBKBD &&
696+
cptkbd_data->middlebutton_state == 1 &&
696697
usage->type == EV_REL &&
697698
(usage->code == REL_X || usage->code == REL_Y)) {
698699
cptkbd_data->middlebutton_state = 3;

drivers/hid/hid-quirks.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ static const struct hid_device_id hid_quirks[] = {
121121
{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_EASYPEN_M406XE), HID_QUIRK_MULTI_INPUT },
122122
{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_MOUSEPEN_I608X_V2), HID_QUIRK_MULTI_INPUT },
123123
{ HID_USB_DEVICE(USB_VENDOR_ID_KYE, USB_DEVICE_ID_KYE_PENSKETCH_T609A), HID_QUIRK_MULTI_INPUT },
124+
{ HID_USB_DEVICE(USB_VENDOR_ID_LABTEC, USB_DEVICE_ID_LABTEC_ODDOR_HANDBRAKE), HID_QUIRK_ALWAYS_POLL },
124125
{ HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_OPTICAL_USB_MOUSE_600E), HID_QUIRK_ALWAYS_POLL },
125126
{ HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_608D), HID_QUIRK_ALWAYS_POLL },
126127
{ HID_USB_DEVICE(USB_VENDOR_ID_LENOVO, USB_DEVICE_ID_LENOVO_PIXART_USB_MOUSE_6019), HID_QUIRK_ALWAYS_POLL },

drivers/hid/i2c-hid/i2c-hid-acpi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,11 @@ static const struct acpi_device_id i2c_hid_acpi_blacklist[] = {
4040
* ICN8505 controller, has a _CID of PNP0C50 but is not HID compatible.
4141
*/
4242
{ "CHPN0001" },
43+
/*
44+
* The IDEA5002 ACPI device causes high interrupt usage and spurious
45+
* wakeups from suspend.
46+
*/
47+
{ "IDEA5002" },
4348
{ }
4449
};
4550

0 commit comments

Comments
 (0)