]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
usb: gadget: dummy_hcd: initialize max_streams early
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 9 Jan 2012 12:14:56 +0000 (13:14 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 24 Jan 2012 09:19:56 +0000 (11:19 +0200)
commitc688419141ad6134d7973fcf182e3719e98d7491
treec52ca708e359168b9a59d54913c001bf85d611f1
parentdcd6c92267155e70a94b3927bce681ce74b80d1f
usb: gadget: dummy_hcd: initialize max_streams early

While playing with uasp I noticed that it does not work with dummy_hcd.
The problem is that uasp requires a stream capable endpoint which it is
requesting at bind time like every other gadget. dummy_hcd however
initializes the max_stream value after connect once it knows if it runs
at SS or not.
I don't think that it is might be wrong to initialize the stream
capability even at HS speed. The gadget may not use this descriptor at
HS speed so it should not cause any damage.

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