HID: hidraw: Use Interrupt Endpoint for OUT Transfers if Available
authorAlan Ott <alan@signal11.us>
Sun, 16 May 2010 22:07:09 +0000 (18:07 -0400)
committerJiri Kosina <jkosina@suse.cz>
Tue, 18 May 2010 08:43:23 +0000 (10:43 +0200)
commita8ab5d58b0238b8199cc699b8dff7c5e1da24138
tree9e737c8618433cb8a603a3f32c382ef08ef287ab
parent117ea33a18392685b92928bbaa4e84dbc5be8f93
HID: hidraw: Use Interrupt Endpoint for OUT Transfers if Available

This patch makes the hidraw driver use the first Interrupt OUT endpoint for
HID transfers to the device if such an endpoint exists. This is consistent
with the behavior of the hiddev driver, and the logic is similar.

From the USB HID specification:

   The Interrupt Out pipe is optional. If a device declares an Interrupt Out
   endpoint then Output reports are transmitted by the host to the device
   through the Interrupt Out endpoint. If no Interrupt Out endpoint is
   declared then Output reports are transmitted to a device through the
   Control endpoint, using Set_Report(Output) requests.

Signed-off-by: Alan Ott <alan@signal11.us>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
drivers/hid/usbhid/hid-core.c