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

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

Merge "usb: dwc3: Avoid resume_work flush in pm_suspend/pm_resume"

parents a6f84d81 880cdfd2
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -4626,8 +4626,6 @@ static int dwc3_msm_pm_suspend(struct device *dev)
	dev_dbg(dev, "dwc3-msm PM suspend\n");
	dbg_event(0xFF, "PM Sus", 0);

	flush_workqueue(mdwc->dwc3_wq);

	/*
	 * Check if pm_suspend can proceed irrespective of runtimePM state of
	 * host.
@@ -4671,8 +4669,6 @@ static int dwc3_msm_pm_resume(struct device *dev)
	dev_dbg(dev, "dwc3-msm PM resume\n");
	dbg_event(0xFF, "PM Res", 0);

	/* flush to avoid race in read/write of pm_suspended */
	flush_workqueue(mdwc->dwc3_wq);
	atomic_set(&mdwc->pm_suspended, 0);

	if (!dwc->host_poweroff_in_pm_suspend || !mdwc->in_host_mode) {