]> git.baikalelectronics.ru Git - kernel.git/commit
usb: dwc3: gadget: reset resource index to zero
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 22 Aug 2011 15:42:18 +0000 (17:42 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:01:55 +0000 (13:01 +0300)
commitb95f9cb3501b497f3f3fedae5cba7a76a248db9b
tree0298c34e7c5b7ddcabf3978d44e7be23f50ae531
parentd6a43ba0295caab4cb6d40f963a325fbfbd9acc4
usb: dwc3: gadget: reset resource index to zero

If we collected two requests together (i.e. only the last of them has
LST=1) then we only have to stop transfer once: The clean-up code will
cleanup everything until first TRB with the LST bit set.
After XferComplete this index should be no longer valid since there is
no transfer pending.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c