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

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

Merge "power: qpnp-smblite: Update TYPEC configuration"

parents f3590142 f9136682
Loading
Loading
Loading
Loading
+5 −9
Original line number Diff line number Diff line
@@ -960,22 +960,18 @@ static int smblite_configure_typec(struct smb_charger *chg)
		return rc;
	}

	rc = smblite_lib_masked_write(chg, TYPE_C_MODE_CFG_REG,
					EN_SNK_ONLY_BIT, 0);
	rc = smblite_lib_write(chg, TYPE_C_INTERRUPT_EN_CFG_2_REG, 0);
	if (rc < 0) {
		dev_err(chg->dev,
			"Couldn't configure TYPE_C_MODE_CFG_REG rc=%d\n",
				rc);
			"Couldn't configure Type-C interrupts rc=%d\n", rc);
		return rc;
	}

	/* Enable detection of unoriented debug accessory in source mode */
	rc = smblite_lib_masked_write(chg, DEBUG_ACCESS_SRC_CFG_REG,
				 EN_UNORIENTED_DEBUG_ACCESS_SRC_BIT,
				 EN_UNORIENTED_DEBUG_ACCESS_SRC_BIT);
	rc = smblite_lib_masked_write(chg, TYPE_C_MODE_CFG_REG,
					EN_SNK_ONLY_BIT, 0);
	if (rc < 0) {
		dev_err(chg->dev,
			"Couldn't configure TYPE_C_DEBUG_ACCESS_SRC_CFG_REG rc=%d\n",
			"Couldn't configure TYPE_C_MODE_CFG_REG rc=%d\n",
				rc);
		return rc;
	}