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

Commit 2759f3be authored by Devesh Jhunjhunwala's avatar Devesh Jhunjhunwala
Browse files

power: smb1351: Enable HVDCP during charger driver probe



Since HVDCP is disabled by default, set the HVDCP_EN bit
during the smb1351-charger driver probe sequence.

Change-Id: I48ea1aa66fda83c33c52fdc3bad82f7bfa180c85
Signed-off-by: default avatarDevesh Jhunjhunwala <deveshj@codeaurora.org>
parent 0c3a23a4
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -1098,6 +1098,14 @@ static int smb1351_hw_init(struct smb1351_charger *chip)
		}
	}

	/* 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) {