Message ID | 1314358032-23513-1-git-send-email-dh.herrmann@googlemail.com (mailing list archive) |
---|---|
State | New, archived |
Delegated to: | Jiri Kosina |
Headers | show |
Hi David, * David Herrmann <dh.herrmann@googlemail.com> [2011-08-26 13:27:12 +0200]: > 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> > --- > net/bluetooth/hidp/core.c | 3 +++ > 1 files changed, 3 insertions(+), 0 deletions(-) Applied, Thanks. Gustavo -- To unsubscribe from this list: send the line "unsubscribe linux-input" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/net/bluetooth/hidp/core.c b/net/bluetooth/hidp/core.c index 43b4c2d..4423e3a 100644 --- a/net/bluetooth/hidp/core.c +++ b/net/bluetooth/hidp/core.c @@ -870,6 +870,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);
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> --- net/bluetooth/hidp/core.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-)