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

Commit 9158af8f authored by qctecmdr Service's avatar qctecmdr Service Committed by Gerrit - the friendly Code Review server
Browse files

Merge "power: smb5: initialize Type-C to DRP mode on boot"

parents 6d21207f 75c439d0
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
@@ -1630,11 +1630,14 @@ static int smb5_configure_typec(struct smb_charger *chg)
		return rc;
	}

	/* enable try.snk and clear force sink for DRP mode */
	rc = smblib_masked_write(chg, TYPE_C_MODE_CFG_REG,
				EN_TRY_SNK_BIT, EN_TRY_SNK_BIT);
				EN_TRY_SNK_BIT | EN_SNK_ONLY_BIT,
				EN_TRY_SNK_BIT);
	if (rc < 0) {
		dev_err(chg->dev,
			"Couldn't enable try.snk rc=%d\n", rc);
			"Couldn't configure TYPE_C_MODE_CFG_REG rc=%d\n",
				rc);
		return rc;
	} else {
		chg->typec_try_mode |= EN_TRY_SNK_BIT;