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

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

Merge "usb: dwc3: Dont release wakeup source during usb restart"

parents fd87c199 980a25b5
Loading
Loading
Loading
Loading
+13 −11
Original line number Diff line number Diff line
@@ -3374,6 +3374,7 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc, bool force_power_collapse,

	dwc3_msm_update_bus_bw(mdwc, BUS_VOTE_NONE);

	if (!mdwc->in_restart) {
		/*
		 * release wakeup source with timeout to defer system suspend to
		 * handle case where on USB cable disconnect, SUSPEND and DISCONNECT
@@ -3386,6 +3387,7 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc, bool force_power_collapse,
		} else {
			pm_relax(mdwc->dev);
		}
	}

	atomic_set(&dwc->in_lpm, 1);