usb: dwc3: gadget: use allocated/queued reqs for LST bit
commit55a0237f8f47957163125e20ee9260538c5c341c
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 30 May 2016 10:38:32 +0000 (30 13:38 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:50 +0000 (20 12:32 +0300)
treec7390016aae8feab3a923a1fad851db5d6c1357f
parent69450c4dc164d9ecbc0b54cb47a2ec80cde45da4
usb: dwc3: gadget: use allocated/queued reqs for LST bit

Let's only set LST bit when we run out of space in
our TRB ring. For all other cases, we keep LST bit
unset which will prevent constant allocation and
deallocation of endpoint transfer resources.

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