Skip to content

Commit 8e2f79f

Browse files
jekhorBenjamin Tissoires
authored andcommitted
HID: sensor-hub: Enable hid core report processing for all devices
After the commit 666cf30 ("HID: sensor-hub: Allow multi-function sensor devices") hub devices are claimed by hidraw driver in hid_connect(). This causes stoppping of processing HID reports by hid core due to optimization. In such case, the hid-sensor-custom driver cannot match a known custom sensor in hid_sensor_custom_get_known() because it try to check custom properties which weren't filled from the report because hid core didn't parsed it. As result, custom sensors like hinge angle sensor and LISS sensors don't work. Mark the sensor hub devices claimed by some driver to avoid hidraw-related optimizations. Fixes: 666cf30 ("HID: sensor-hub: Allow multi-function sensor devices") Cc: [email protected] Signed-off-by: Yauhen Kharuzhy <[email protected]> Tested-by: Daniel Thompson <[email protected]> Acked-by: Srinivas Pandruvada <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Benjamin Tissoires <[email protected]>
1 parent 3f10e21 commit 8e2f79f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/hid/hid-sensor-hub.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -632,7 +632,7 @@ static int sensor_hub_probe(struct hid_device *hdev,
632632
}
633633
INIT_LIST_HEAD(&hdev->inputs);
634634

635-
ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT);
635+
ret = hid_hw_start(hdev, HID_CONNECT_DEFAULT | HID_CONNECT_DRIVER);
636636
if (ret) {
637637
hid_err(hdev, "hw start failed\n");
638638
return ret;

0 commit comments

Comments
 (0)