usb: dwc3: gadget: reset resource index to zero
commita1ae9be5fc137d7e911a77ef408273ff55a53a39
authorSebastian Andrzej Siewior <bigeasy@linutronix.de>
Mon, 22 Aug 2011 15:42:18 +0000 (22 17:42 +0200)
committerFelipe Balbi <balbi@ti.com>
Fri, 9 Sep 2011 10:01:55 +0000 (9 13:01 +0300)
tree0298c34e7c5b7ddcabf3978d44e7be23f50ae531
parent0d2f4758530d1598087d1d2f3e75b4f7d17fc6c7
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