usb: gadget: configure endpoint according to gadget speed

Add config_ep_by_speed() to configure the endpoint
according to the gadget speed.

Using this function will spare the FDs from handling
the endpoint chosen descriptor.

Signed-off-by: Tatyana Brokhman <tlinder@codeaurora.org>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Dieser Commit ist enthalten in:
Tatyana Brokhman
2011-06-28 16:33:49 +03:00
committet von Greg Kroah-Hartman
Ursprung 72c973dd2b
Commit 48767a4e82
4 geänderte Dateien mit 92 neuen und 0 gelöschten Zeilen

Datei anzeigen

@@ -191,6 +191,7 @@ ep_matches (
size = 64;
desc->wMaxPacketSize = cpu_to_le16(size);
}
ep->address = desc->bEndpointAddress;
return 1;
}