Skip to content

Commit dde3b45

Browse files
Archana PatniJiri Kosina
authored andcommitted
HID: hid-sensor-hub: new device id and quirk for STM Sensor hub
Added STM sensor hub new device id. Also added this new device in HID_SENSOR_HUB_ENUM_QUIRK to fix report descriptors. These devices uses old FW which uses logical 0 as minimum. In these, HID reports are not using proper collection classes. So we need to fix report descriptors,for such devices. This will not have any impact, if the FW uses logical 1 as minimum. Signed-off-by: Archana Patni <[email protected]> Signed-off-by: Subramony Sesha <[email protected]> Reviewed-by: Srinivas Pandruvada <[email protected]> Signed-off-by: Jiri Kosina <[email protected]>
1 parent 9ea63c4 commit dde3b45

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

drivers/hid/hid-ids.h

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

461461
#define USB_VENDOR_ID_STM_0 0x0483
462462
#define USB_DEVICE_ID_STM_HID_SENSOR 0x91d1
463+
#define USB_DEVICE_ID_STM_HID_SENSOR_1 0x9100
463464

464465
#define USB_VENDOR_ID_ION 0x15e4
465466
#define USB_DEVICE_ID_ICADE 0x0132

drivers/hid/hid-sensor-hub.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -717,6 +717,9 @@ static const struct hid_device_id sensor_hub_devices[] = {
717717
{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_MICROSOFT,
718718
USB_DEVICE_ID_MS_TYPE_COVER_2),
719719
.driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
720+
{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, USB_VENDOR_ID_STM_0,
721+
USB_DEVICE_ID_STM_HID_SENSOR_1),
722+
.driver_data = HID_SENSOR_HUB_ENUM_QUIRK},
720723
{ HID_DEVICE(HID_BUS_ANY, HID_GROUP_SENSOR_HUB, HID_ANY_ID,
721724
HID_ANY_ID) },
722725
{ }

0 commit comments

Comments
 (0)