Skip to content

Commit 2078665

Browse files
bentissJiri Kosina
authored andcommitted
HID: lg: restrict filtering out of first interface to G29 only
Looks like 29fae1c ("HID: logitech: Add support for G29") was a little bit aggressive and broke other devices. Fixes: https://bugzilla.kernel.org/show_bug.cgi?id=108121 Signed-off-by: Benjamin Tissoires <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 0d51571 commit 2078665

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/hid/hid-lg.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -665,8 +665,9 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
665665
struct lg_drv_data *drv_data;
666666
int ret;
667667

668-
/* Only work with the 1st interface (G29 presents multiple) */
669-
if (iface_num != 0) {
668+
/* G29 only work with the 1st interface */
669+
if ((hdev->product == USB_DEVICE_ID_LOGITECH_G29_WHEEL) &&
670+
(iface_num != 0)) {
670671
dbg_hid("%s: ignoring ifnum %d\n", __func__, iface_num);
671672
return -ENODEV;
672673
}

0 commit comments

Comments
 (0)