Skip to content

Commit 142c69c

Browse files
David HerrmannGustavo F. Padovan
authored andcommitted
Bluetooth: hidp: Add support for NO_INIT_REPORTS quirk
During setup the host initializes all HID reports. Some devices do not support this. If this quirk is set, we skip the initialization. See also usbhid_init_reports() for this quirk. Signed-off-by: David Herrmann <dh.herrmann@googlemail.com> Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent 21061df commit 142c69c

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎net/bluetooth/hidp/core.c‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -872,6 +872,9 @@ static int hidp_start(struct hid_device *hid)
872872
struct hidp_session *session = hid->driver_data;
873873
struct hid_report *report;
874874

875+
if (hid->quirks & HID_QUIRK_NO_INIT_REPORTS)
876+
return 0;
877+
875878
list_for_each_entry(report, &hid->report_enum[HID_INPUT_REPORT].
876879
report_list, list)
877880
hidp_send_report(session, report);

0 commit comments

Comments
 (0)