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>
Thu, 2 Feb 2012 11:01:12 +0000 (13:01 +0200)
commit2a76211db966a24b722300306a1014aa4c4f3fd5
tree744a3db20733c7ee5f8c5ba0082ea74cb6fb3176
parent9008c8cc592061a5a5bb0e645fc09c1089f0309e
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