UPSTREAM: usb: dwc3: gadget: use allocated/queued reqs for LST bit
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 30 May 2016 10:38:32 +0000 (13:38 +0300)
committerHuang, Tao <huangtao@rock-chips.com>
Tue, 16 Aug 2016 12:48:19 +0000 (20:48 +0800)
commitad2a4b5ee57bb90914d569725217f40ea77d1d89
tree7dc72e3bcbcc8a1b1ebfb4b86e13f69c30e0cbb2
parentd5c84f6771e889e45b192fda4fee4886c06f0c55
UPSTREAM: 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.

Change-Id: Ia846ea0e3540c151d04488f239eb0f847c85b1fd
Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>
Signed-off-by: Wu Liang feng <wulf@rock-chips.com>
(cherry picked from commit 55a0237f8f47957163125e20ee9260538c5c341c)
drivers/usb/dwc3/gadget.c