From: Felipe Balbi Date: Wed, 6 Jun 2012 06:18:12 +0000 (+0300) Subject: usb: dwc3: gadget: don't call stop_active_transfers() on disconnect X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1e2360eadaa33c09bb72afb14f74b6c6ab2aca66;p=openwrt%2Fstaging%2Fblogic.git usb: dwc3: gadget: don't call stop_active_transfers() on disconnect 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 Signed-off-by: Felipe Balbi --- diff --git a/drivers/usb/dwc3/gadget.c b/drivers/usb/dwc3/gadget.c index 0f19978d4840..52d0f67e33d5 100644 --- a/drivers/usb/dwc3/gadget.c +++ b/drivers/usb/dwc3/gadget.c @@ -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;