usb: dwc3: clear 'res_trans_idx' as soon as it becomes invalid
authorPaul Zimmerman <Paul.Zimmerman@synopsys.com>
Sat, 25 Feb 2012 01:32:18 +0000 (17:32 -0800)
committerFelipe Balbi <balbi@ti.com>
Fri, 2 Mar 2012 10:12:11 +0000 (12:12 +0200)
commitc2df85ca31645ed3c68c56bd30a3673e034224f1
tree1a344944e22d7e4407c5d1c341323c73bf26fa16
parent249a456930cd2df29d085fb738b0e8f4bc1680cf
usb: dwc3: clear 'res_trans_idx' as soon as it becomes invalid

Transfer resource index is cleared in hardware when XFERCOMPLETE
event is generated, so clear the driver's res_trans_idx variable
immediately after that event is received. The upcoming hibernation
patches depend on this change.

Signed-off-by: Paul Zimmerman <paulz@synopsys.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/ep0.c
drivers/usb/dwc3/gadget.c