Skip to content

Commit

Permalink
Bluetooth: hidp: Add support for NO_INIT_REPORTS quirk
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Herrmann authored and Gustavo F. Padovan committed Sep 21, 2011
1 parent 21061df commit 142c69c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions net/bluetooth/hidp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -872,6 +872,9 @@ static int hidp_start(struct hid_device *hid)
struct hidp_session *session = hid->driver_data;
struct hid_report *report;

if (hid->quirks & HID_QUIRK_NO_INIT_REPORTS)
return 0;

list_for_each_entry(report, &hid->report_enum[HID_INPUT_REPORT].
report_list, list)
hidp_send_report(session, report);
Expand Down

0 comments on commit 142c69c

Please sign in to comment.