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

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

Merge "USB: phy-msm-usb: Queue smwork from PM notify in device mode"

parents d938012c 8616e973
Loading
Loading
Loading
Loading
+1 −10
Original line number Original line Diff line number Diff line
@@ -5146,8 +5146,6 @@ static int msm_otg_pm_resume(struct device *dev)
	dev_dbg(dev, "OTG PM resume\n");
	dev_dbg(dev, "OTG PM resume\n");


	motg->pm_done = 0;
	motg->pm_done = 0;
	if (!motg->host_bus_suspend)
		atomic_set(&motg->pm_suspended, 0);


	if (motg->async_int || motg->sm_work_pending ||
	if (motg->async_int || motg->sm_work_pending ||
			!pm_runtime_suspended(dev)) {
			!pm_runtime_suspended(dev)) {
@@ -5159,14 +5157,7 @@ static int msm_otg_pm_resume(struct device *dev)
		pm_runtime_set_active(dev);
		pm_runtime_set_active(dev);
		pm_runtime_enable(dev);
		pm_runtime_enable(dev);


		/*
		/* sm work will start in pm notify */
		 * Defer any host mode disconnect events until
		 * all devices are RESUMED
		 */
		if (motg->sm_work_pending && !motg->host_bus_suspend) {
			motg->sm_work_pending = false;
			queue_work(system_nrt_wq, &motg->sm_work);
		}
	}
	}


	return ret;
	return ret;