usb: dwc3: gadget: Fix dwc3_stop_active_transfer for synchronization delay
authorPratyush Anand <pratyush.anand@st.com>
Fri, 6 Jul 2012 09:49:10 +0000 (15:19 +0530)
committerFelipe Balbi <balbi@ti.com>
Thu, 9 Aug 2012 11:18:39 +0000 (14:18 +0300)
commit57911504a93909034ba5b90c20f3e6df8409ebd8
tree439a00a1a9991217dcb36d4acf9aa7e6e04d47ca
parent79c9046ec52b5aaa9f055e3d928d676dd37a6f9d
usb: dwc3: gadget: Fix dwc3_stop_active_transfer for synchronization delay

dwc3_stop_active_transfer has been called from two places. After each
calling of this function , we should allow 100 us delay to synchronize
with interconnect.

It would be better if we put this delay in that function only, rather
than into calling routine of this function.

Signed-off-by: Pratyush Anand <pratyush.anand@st.com>
Reported-by: Michel Sanches <michel.sanches@st.com>
Signed-off-by: Felipe Balbi <balbi@ti.com>
drivers/usb/dwc3/gadget.c