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

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

Merge "power: smb1351: Enable HVDCP during charger driver probe"

parents c3b8572a 2759f3be
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1104,6 +1104,14 @@ static int smb1351_hw_init(struct smb1351_charger *chip)
	rc = smb1351_masked_write(chip, OTG_TLIM_CTRL_REG, SWITCH_FREQ_MASK,
			(chip->switch_freq << SWITCH_FREQ_SHIFT));

	/* Enable HVDCP */
	rc = smb1351_masked_write(chip, HVDCP_BATT_MISSING_CTRL_REG,
			HVDCP_EN_BIT, HVDCP_EN_BIT);
	if (rc) {
		pr_err("Failed to enable HVDCP, rc=%d\n", rc);
		return rc;
	}

	/* enable/disable charging by suspending usb */
	rc = smb1351_usb_suspend(chip, USER, chip->usb_suspended_status);
	if (rc) {