]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: initialize max_streams
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Thu, 3 Nov 2011 19:27:50 +0000 (20:27 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 14 Nov 2011 19:51:31 +0000 (11:51 -0800)
commit989aeb125d74ea58dead8a67dd0b5d5d7b3baef9
tree660e6fe1bfa6c80a00b0eb14ea9bb6e804f913e0
parentcc5b583e909e9673c965eb8e8540c23e3263b9f5
usb: dwc3: gadget: initialize max_streams

Without this the gadget will never be able to allocate a stream capable
endpoint. The manual says that the stream id is a 16bit id. It does not
talk about an upper limit in any other way. So I think 15 is a
reasonable limit :)

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/dwc3/gadget.c