commit | 0e146028eebf989e86d3fe9385b76434e954c84e | [log] [tgz] |
---|---|---|
author | Felipe Balbi <felipe.balbi@linux.intel.com> | Tue Jun 21 10:32:02 2016 +0300 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Tue Jun 21 10:38:44 2016 +0300 |
tree | 7df417e9250bd4990de6d3a3357ba8b0b975834a | |
parent | 328082376aea6016b63bca1e5c067a9539f9e8c9 [diff] |
usb: dwc3: gadget: issue ENDTRANSFER conditional on resource_index Because of recent changes to transfer handling on DWC3, we will not get XferComplete unless we completely fill up our TRB ring. This means that we might get a Reset or Disconnect without getting a XferComplete first. In order to correctly release our allocated Transfer Resource, we must issue ENDTRANSFER command whenever dep->resource_index is valid. Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>