usb: gadget: composite: fix bMaxPacketSize for SuperSpeed
commit6a22158c596c1531b143c884d479285ef90608d1
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Tue, 19 Jul 2011 18:21:52 +0000 (19 20:21 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 12 Aug 2011 08:52:31 +0000 (12 11:52 +0300)
tree2302cf64ec43b8e189b7223a9ad60eaec1d9a946
parentaba1350fdac7cb52f86e6818addb26d03b3ef9bc
usb: gadget: composite: fix bMaxPacketSize for SuperSpeed

For bMaxPacketSize0 we usually take what is specified in ep0->maxpacket.
This is fine in most cases, however on SuperSpeed bMaxPacketSize0
specifies the exponent instead of the actual size in bytes. The only
valid value on SS is 9 which denotes 512 bytes.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/gadget/composite.c