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

Commit 9f72327c authored by Ajay Agarwal's avatar Ajay Agarwal
Browse files

usb: dwc3-msm: Prevent SNPS SS PHY from suspend during runtime suspend



'Commit 9cd474b2 ("usb: dwc3-msm: Add support for snps SSPHY
suspend in system suspend")' added a bug where dwc3_msm_suspend
gets called with 'enable_wakeup' flag set to false from runtime
suspend. This will break remote wakeup/connect scenario which is
still a requirement in runtime suspend case.
Fix it by calling dwc3_msm_suspend with 'enable_wakeup' as true.

Change-Id: I6d29d0c9429d27471d2352944736de03d7e79ddb
Signed-off-by: default avatarAjay Agarwal <ajaya@codeaurora.org>
parent 0a42b676
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5003,7 +5003,7 @@ static int dwc3_msm_runtime_suspend(struct device *dev)
	dev_dbg(dev, "DWC3-msm runtime suspend\n");
	dbg_event(0xFF, "RT Sus", 0);

	return dwc3_msm_suspend(mdwc, false, false);
	return dwc3_msm_suspend(mdwc, false, true);
}

static int dwc3_msm_runtime_resume(struct device *dev)