]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 20 Jun 2016 09:32:50 +0000 (12:32 +0300)
commita5c092e0d94ef6f96200cc77d9f776f56999123c
treec7390016aae8feab3a923a1fad851db5d6c1357f
parentce420a619d2271cf9bbe0c2cc2ae34b8f33ab06b
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