Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 82410552 authored by Kyle Yan's avatar Kyle Yan Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3: gadget: Remove disabling events and ep0 from gadget stop" into msm-4.8

parents 029b71a4 e1f1af43
Loading
Loading
Loading
Loading
+0 −6
Original line number Original line Diff line number Diff line
@@ -2078,16 +2078,10 @@ static int dwc3_gadget_stop(struct usb_gadget *g)
	struct dwc3	*dwc = gadget_to_dwc(g);
	struct dwc3	*dwc = gadget_to_dwc(g);
	unsigned long	flags;
	unsigned long	flags;


	pm_runtime_get_sync(dwc->dev);

	spin_lock_irqsave(&dwc->lock, flags);
	spin_lock_irqsave(&dwc->lock, flags);
	__dwc3_gadget_stop(dwc);
	dwc->gadget_driver = NULL;
	dwc->gadget_driver = NULL;
	spin_unlock_irqrestore(&dwc->lock, flags);
	spin_unlock_irqrestore(&dwc->lock, flags);


	pm_runtime_mark_last_busy(dwc->dev);
	pm_runtime_put_autosuspend(dwc->dev);

	return 0;
	return 0;
}
}