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

Commit d5f567a1 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "dwc3: gadget: Flush dwc_wq with dwc3_gadget_stop() API"

parents 49d4e403 f0a45129
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2333,6 +2333,10 @@ static int dwc3_gadget_stop(struct usb_gadget *g)
	dwc->gadget_driver = NULL;
	spin_unlock_irqrestore(&dwc->lock, flags);

	dbg_event(0xFF, "fwq_started", 0);
	flush_workqueue(dwc->dwc_wq);
	dbg_event(0xFF, "fwq_completed", 0);

	return 0;
}