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

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

Merge "dwc3-msm: Fix lpm not entering issue during mode switch"

parents 7853a700 f382a2f7
Loading
Loading
Loading
Loading
+8 −1
Original line number Diff line number Diff line
@@ -2329,7 +2329,14 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc, bool hibernation)
		return -EBUSY;
	}

	if (!mdwc->in_host_mode && (mdwc->vbus_active && !mdwc->suspend)) {
	/*
	 * Check if remote wakeup is received and pending before going
	 * ahead with suspend routine as part of device bus suspend.
	 */

	if (!mdwc->in_host_mode && (mdwc->vbus_active &&
		(mdwc->otg_state == OTG_STATE_B_SUSPEND ||
		mdwc->otg_state == OTG_STATE_B_PERIPHERAL) && !mdwc->suspend)) {
		dev_dbg(mdwc->dev,
			"Received wakeup event before the core suspend\n");
		mutex_unlock(&mdwc->suspend_resume_mutex);