commit | 737f1ae2556a5d219c24fbea2e1c63b7d9e10869 | [log] [tgz] |
---|---|---|
author | Felipe Balbi <felipe.balbi@linux.intel.com> | Thu Aug 11 12:24:27 2016 +0300 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Mon Aug 22 10:45:37 2016 +0300 |
tree | 927a2cf8dcd029196938c8b92a46d5a1f326cef1 | |
parent | 4bc48c9747084dad4b258821a69026bcc552e8ff [diff] |
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>