commit | 361572b5f7a95b341a92d34b9bf41f71bbdae34d | [log] [tgz] |
---|---|---|
author | John Youn <johnyoun@synopsys.com> | Thu May 19 17:26:17 2016 -0700 |
committer | Felipe Balbi <felipe.balbi@linux.intel.com> | Mon Jun 20 12:32:45 2016 +0300 |
tree | 9acd370326e26392f1bd933e5927923268f89546 | |
parent | 7d0a038b130cde7265d6bbc5e148734cb127f341 [diff] |
usb: dwc3: gadget: Handle TRB index 0 when full or empty If the trb->enqueue == trb->dequeue, then it could be full or empty. This could also happen at TRB index 0, so modify the check to handle that condition. At index 0, the previous TRB is the one just before the link TRB. Signed-off-by: John Youn <johnyoun@synopsys.com> Signed-off-by: Felipe Balbi <felipe.balbi@linux.intel.com>