Skip to content

Commit 52dc085

Browse files
mhermierJiri Kosina
authored andcommitted
Revert "HID: microsoft: fix invalid rdesc for 3k kbd"
This reverts commit 3ccc60f. While investigating bug https://bugzilla.kernel.org/show_bug.cgi?id=37982 , there was solid evidences that Microsoft reused the same report descriptor for the its Digital Media keyboard series. Since 1989dad "HID: input: ignore System Control application usages if not System Controls", the keyboard series do not produce a spurious joystick input device inode without needing to patch the problematic report descriptor. As such the MS_RDESC_3K reportdescriptor fixup can be removed. Signed-off-by: Michel Hermier <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 1989dad commit 52dc085

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

drivers/hid/hid-microsoft.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828
#define MS_RDESC 0x08
2929
#define MS_NOGET 0x10
3030
#define MS_DUPLICATE_USAGES 0x20
31-
#define MS_RDESC_3K 0x40
3231

3332
static __u8 *ms_report_fixup(struct hid_device *hdev, __u8 *rdesc,
3433
unsigned int *rsize)
@@ -45,13 +44,6 @@ static __u8 *ms_report_fixup(struct hid_device *hdev, __u8 *rdesc,
4544
rdesc[557] = 0x35;
4645
rdesc[559] = 0x45;
4746
}
48-
/* the same as above (s/usage/physical/) */
49-
if ((quirks & MS_RDESC_3K) && *rsize == 106 && rdesc[94] == 0x19 &&
50-
rdesc[95] == 0x00 && rdesc[96] == 0x29 &&
51-
rdesc[97] == 0xff) {
52-
rdesc[94] = 0x35;
53-
rdesc[96] = 0x45;
54-
}
5547
return rdesc;
5648
}
5749

@@ -271,7 +263,7 @@ static const struct hid_device_id ms_devices[] = {
271263
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_PRESENTER_8K_USB),
272264
.driver_data = MS_PRESENTER },
273265
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_DIGITAL_MEDIA_3K),
274-
.driver_data = MS_ERGONOMY | MS_RDESC_3K },
266+
.driver_data = MS_ERGONOMY },
275267
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_DIGITAL_MEDIA_7K),
276268
.driver_data = MS_ERGONOMY },
277269
{ HID_USB_DEVICE(USB_VENDOR_ID_MICROSOFT, USB_DEVICE_ID_MS_DIGITAL_MEDIA_600),

0 commit comments

Comments
 (0)