]> git.karo-electronics.de Git - linux-beck.git/commit
usb: gadget: check for streams only for SS udcs
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Wed, 11 Jan 2012 20:42:44 +0000 (21:42 +0100)
committerFelipe Balbi <balbi@ti.com>
Tue, 24 Jan 2012 13:43:12 +0000 (15:43 +0200)
commitc74c930082fd407e3b9e503d855d78777a8e5a84
tree9be81e1bd1fe201cb4c5ad225753ee820a719b3f
parent118d63f7f84cd400ba537f5d318c035c95c6776d
usb: gadget: check for streams only for SS udcs

Currently the UASP gadget fails to bind on an UDC which does not provide
stream support. This is true for all udc in tree except for dummy and
dwc3 since they don't support SuperSpeed.
There is no need to test for the availability of stream support on those
UDCs because we will never even try to use them. I think it is sane to
assume that StreamSupport is always available on SuperSpeed since it is
one of the key features.
The host side will only allocate on SS so this part is also fine.

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