usb: dwc3: gadget: don't call stop_active_transfers() on disconnect
authorFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 06:18:12 +0000 (09:18 +0300)
committerFelipe Balbi <balbi@ti.com>
Wed, 6 Jun 2012 08:22:32 +0000 (11:22 +0300)
In case we get disconnected, we will call gadget
driver's disconnect method, which should make
sure to disable all endpoints. At that point
we will call stop_active_transfers() to make
sure we didn't leave any pending request on the
controller.

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

index 0f19978d484000d12a9b8e716d51ef6f8997b61b..52d0f67e33d56a0218b054822d0639a04df76ec2 100644 (file)
@@ -1927,7 +1927,6 @@ static void dwc3_gadget_disconnect_interrupt(struct dwc3 *dwc)
        reg &= ~DWC3_DCTL_INITU2ENA;
        dwc3_writel(dwc->regs, DWC3_DCTL, reg);
 
-       dwc3_stop_active_transfers(dwc);
        dwc3_disconnect_gadget(dwc);
        dwc->start_config_issued = false;
 
This page took 0.028041 seconds and 5 git commands to generate.