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

Commit b11adb09 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: Cancel block reset work before turning OFF clocks in suspend"

parents db66f06f 9abb6987
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -1663,6 +1663,10 @@ static int dwc3_msm_suspend(struct dwc3_msm *mdwc)
	atomic_set(&dwc->in_lpm, 1);

	usb_phy_set_suspend(mdwc->hs_phy, 1);

	/* Cancel block reset work and wait for it to finish */
	cancel_work_sync(&mdwc->usb_block_reset_work);

	if (can_suspend_ssphy) {
		usb_phy_set_suspend(mdwc->ss_phy, 1);
		usleep_range(1000, 1200);