Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2078665a authored by Benjamin Tissoires's avatar Benjamin Tissoires Committed by Jiri Kosina
Browse files

HID: lg: restrict filtering out of first interface to G29 only

Looks like 29fae1c8 ("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: default avatarBenjamin Tissoires <benjamin.tissoires@redhat.com>
Signed-off-by: default avatarJiri Kosina <jkosina@suse.cz>
parent 0d51571d
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -665,8 +665,9 @@ static int lg_probe(struct hid_device *hdev, const struct hid_device_id *id)
	struct lg_drv_data *drv_data;
	int ret;

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