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

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

Merge "usb: msm-hsphy: Fix conditional logic for host suspend"

parents 60fd13d7 f4bed5e4
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -334,13 +334,13 @@ static int msm_hsphy_set_suspend(struct usb_phy *uphy, int suspend)
					(OTGSESSVLDHV_INTEN | IDHV_INTEN));

		/* can turn off regulators if disconnected in device mode */
		if (!host || !chg_connected) {
		if (!host && !chg_connected) {
			if (phy->ext_vbus_id)
				msm_hsusb_ldo_enable(phy, 0);
			msm_hsusb_config_vdd(phy, 0);
		}
	} else {
		if (!host || !chg_connected) {
		if (!host && !chg_connected) {
			msm_hsusb_config_vdd(phy, 1);
			if (phy->ext_vbus_id)
				msm_hsusb_ldo_enable(phy, 1);