usb: dwc3: gadget: allocate 3 packets for bulk and isoc endpoints
authorFelipe Balbi <balbi@ti.com>
Thu, 2 Feb 2012 11:01:12 +0000 (13:01 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Feb 2012 15:06:12 +0000 (17:06 +0200)
commit2e81c36a00d0eb8ce72faaaec1a1d865617374ae
tree7dabea56a2bcc268038affa34e4ab11a7ca80414
parentd70d84423cbc5d6d929640189cf204e693024309
usb: dwc3: gadget: allocate 3 packets for bulk and isoc endpoints

Those transfer types are generally high bandwidth, so we
want to optimize transfers with those endpoints.

For that, databook suggests allocating 3 * wMaxPacketSize
of FIFO. Let's do that.

Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c