From: David Herrmann Date: Fri, 26 Aug 2011 11:27:12 +0000 (+0200) Subject: Bluetooth: hidp: Add support for NO_INIT_REPORTS quirk X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=142c69c6eaab26587264881bb71546e30aafdcee;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index fb68f344c34..b83979c548b 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c @@ -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);