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

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

Merge "USB: dwc3-msm: clear in_restart flag always in restart work"

parents 9935c940 e0a3a8b5
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -1465,11 +1465,10 @@ static void dwc3_restart_usb_work(struct work_struct *w)
		pm_runtime_suspend(mdwc->dev);
	}

	/* Force reconnect only if cable is still connected */
	if (mdwc->vbus_active) {
	mdwc->in_restart = false;
	/* Force reconnect only if cable is still connected */
	if (mdwc->vbus_active)
		dwc3_resume_work(&mdwc->resume_work);
	}

	dwc->err_evt_seen = false;
	flush_delayed_work(&mdwc->sm_work);