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

Commit 78e9e371 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: Flush bus_vote_w work on pm_suspend and freeze"

parents 7cd7e941 4a915f89
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -4059,10 +4059,13 @@ static int dwc3_msm_pm_suspend(struct device *dev)
	}

	ret = dwc3_msm_suspend(mdwc, false);
	if (!ret)
	if (ret)
		return ret;

	flush_work(&mdwc->bus_vote_w);
	atomic_set(&mdwc->pm_suspended, 1);

	return ret;
	return 0;
}

static int dwc3_msm_pm_freeze(struct device *dev)
@@ -4091,10 +4094,13 @@ static int dwc3_msm_pm_freeze(struct device *dev)
	mdwc->hs_phy->flags &= ~PHY_HOST_MODE;

	ret = dwc3_msm_suspend(mdwc, true);
	if (!ret)
	if (ret)
		return ret;

	flush_work(&mdwc->bus_vote_w);
	atomic_set(&mdwc->pm_suspended, 1);

	return ret;
	return 0;
}

static int dwc3_msm_pm_resume(struct device *dev)