]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commitdiff
Bluetooth: hidp: Add support for NO_INIT_REPORTS quirk
authorDavid Herrmann <dh.herrmann@googlemail.com>
Fri, 26 Aug 2011 11:27:12 +0000 (13:27 +0200)
committerGustavo F. Padovan <padovan@profusion.mobi>
Wed, 21 Sep 2011 15:58:12 +0000 (12:58 -0300)
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>
net/bluetooth/hidp/core.c

index fb68f344c34a68e5a4334b751196680ac33ffdfe..b83979c548b2ee706908a053430ad94a2df5a82c 100644 (file)
@@ -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);