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

Commit 6011643e authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qcom: smb1355: Fix writing to SID register



SID register needs to be written securely. Fix it.

Change-Id: Ib06350521e0c7f33eda19b688eb12a74d3dab83b
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 51683be8
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -261,7 +261,7 @@ enum {


static bool is_secure(struct smb1355 *chip, int addr)
static bool is_secure(struct smb1355 *chip, int addr)
{
{
	if (addr == CLOCK_REQUEST_REG)
	if (addr == CLOCK_REQUEST_REG || addr == I2C_SS_DIG_PMIC_SID_REG)
		return true;
		return true;


	/* assume everything above 0xA0 is secure */
	/* assume everything above 0xA0 is secure */