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

Commit fd37d4bb authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "usb: dwc3-msm: Ensure reset if h/w is out of lpm without any events"

parents 9eeb11db 8e125f65
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -2608,6 +2608,13 @@ static int dwc3_msm_resume(struct dwc3_msm *mdwc)

	dev_dbg(mdwc->dev, "%s: exiting lpm\n", __func__);

	/*
	 * If h/w exited LPM without any events, ensure
	 * h/w is reset before processing any new events.
	 */
	if (!mdwc->vbus_active && mdwc->id_state)
		set_bit(WAIT_FOR_LPM, &mdwc->inputs);

	mutex_lock(&mdwc->suspend_resume_mutex);
	if (!atomic_read(&dwc->in_lpm)) {
		dev_dbg(mdwc->dev, "%s: Already resumed\n", __func__);