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

Commit f698dc6e authored by Pavankumar Kondeti's avatar Pavankumar Kondeti
Browse files

usb: phy-msm-usb: don't power collapse PHY during peripheral bus suspend



ALLOW_PHY_POWER_COLLAPSE LPM capability flag is set for the targets which
can receive VBUS/ID notifications from PMIC. When this flag is set,
the PHY is power collapsed during LPM. Avoid this for the peripheral bus
suspend case.

Change-Id: I838724a5526fe22376d2199fa454a570e1cadf6e
Signed-off-by: default avatarPavankumar Kondeti <pkondeti@codeaurora.org>
parent d2d9cb96
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1082,7 +1082,7 @@ phcd_retry:
	}

	if (motg->caps & ALLOW_PHY_POWER_COLLAPSE &&
			!host_bus_suspend && !dcp) {
			!host_bus_suspend && !dcp && !device_bus_suspend) {
		msm_hsusb_ldo_enable(motg, USB_PHY_REG_OFF);
		motg->lpm_flags |= PHY_PWR_COLLAPSED;
	} else if (motg->caps & ALLOW_PHY_REGULATORS_LPM &&