usb: dwc3: gadget: increment dequeue pointer on completion
commit737f1ae2556a5d219c24fbea2e1c63b7d9e10869
authorFelipe Balbi <felipe.balbi@linux.intel.com>
Thu, 11 Aug 2016 09:24:27 +0000 (11 12:24 +0300)
committerFelipe Balbi <felipe.balbi@linux.intel.com>
Mon, 22 Aug 2016 07:45:37 +0000 (22 10:45 +0300)
tree927a2cf8dcd029196938c8b92a46d5a1f326cef1
parent4bc48c9747084dad4b258821a69026bcc552e8ff
usb: dwc3: gadget: increment dequeue pointer on completion

Instead of waiting until giveback before
incrementing the dequeue pointer, we can increment
it from dwc3_cleanup_done_reqs(), that way we avoid
an extra loop over all TRBs during giveback.

While at that, also avoid using req->first_trb_index
as that's completely unnecessary. A follow-up patch
will clean up further uses of that and remove the
field altogether.

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