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

Commit 8ae46cdd authored by Anirudh Ghayal's avatar Anirudh Ghayal Committed by Ashay Jaiswal
Browse files

power: qpnp-smbcharger: Add a delay to switch into HVDCP 2.0 mode



Add a design required delay to allow HVDCP to switch into
2.0 mode before forcing it to 9V. There is a possibility
of a UV without this delay.

Change-Id: I46cfb4296c734ea0dc768bbd6874fe55b644d60c
Signed-off-by: default avatarAnirudh Ghayal <aghayal@codeaurora.org>
parent a8c22f87
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3889,6 +3889,9 @@ static int force_9v_hvdcp(struct smbchg_chip *chip)
		return rc;
	}

	/* Delay to switch into HVDCP 2.0 and avoid UV */
	msleep(500);

	/* Force 9V HVDCP */
	rc = smbchg_sec_masked_write(chip,
			chip->usb_chgpth_base + CHGPTH_CFG,