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

Commit 374ecdb7 authored by Ashay Jaiswal's avatar Ashay Jaiswal Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-smbcharger: fix hvdcp_enable voting



Add an initial vote on "hvdcp_enable" voter to make sure
all subsequent votings are registered by framework.

Change-Id: Ic2146ef8771497aa6e9da81af16fd67823bc06b0
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 79551c4b
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -7124,6 +7124,13 @@ static int smbchg_hw_init(struct smbchg_chip *chip)
			return rc;
		}
	} else {
		rc = vote(chip->hvdcp_enable_votable, HVDCP_PMIC_VOTER,
				true, 1);
		if (rc < 0) {
			dev_err(chip->dev,
				"Couldn't disable HVDCP vote rc=%d\n", rc);
			return rc;
		}
		rc = smbchg_sec_masked_write(chip,
				chip->usb_chgpth_base + CHGPTH_CFG,
				HVDCP_ADAPTER_SEL_MASK, HVDCP_9V);