]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
usb: dwc3: gadget: dynamically re-size TxFifos
authorFelipe Balbi <balbi@ti.com>
Wed, 18 Jan 2012 16:04:09 +0000 (18:04 +0200)
committerFelipe Balbi <balbi@ti.com>
Mon, 6 Feb 2012 09:48:34 +0000 (11:48 +0200)
commit457e84b6624b4d97e6ffae437887ea51a22d54a0
treee1ca1503cdda97570fa692589e44a1ca43e72d8b
parentbb5cfd6811c63c47403e98028bde7e98bd7a1751
usb: dwc3: gadget: dynamically re-size TxFifos

We need to dynamically re-size TxFifos for the
cases where default values will not do.

While at that, we create a simple function which,
for now, will just allocate one full packet fifo
space for each of the enabled endpoints.

This can be improved later in order to allow for
better throughput by allocating more space for
endpoints which could make good use of that like
isochronous and bulk.

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