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

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

Merge "power: qpnp-smbcharger: fix hvdcp_enable voting"

parents 4852de5f 374ecdb7
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);