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

Commit 47b49261 authored by Kavya Nunna's avatar Kavya Nunna
Browse files

power: smb5-lib: Fix Type-C compliance failure



PMI632 does not support liquid-presence-detection (LPD)
hence there is no need to enable un-oriented DAM
SRC configuration. This fixes the TypeC compliance
failure 4.8.2.

Change-Id: I228c9df0dd3d49c594640627936d7579b4fa3df9
Signed-off-by: default avatarKavya Nunna <knunna@codeaurora.org>
parent 8c06c754
Loading
Loading
Loading
Loading
+14 −11
Original line number Diff line number Diff line
@@ -2143,7 +2143,11 @@ static int smb5_configure_typec(struct smb_charger *chg)
		}
	}

	/* Enable detection of unoriented debug accessory in source mode */
	if (chg->chg_param.smb_version != PMI632_SUBTYPE) {
		/*
		 * Enable detection of unoriented debug
		 * accessory in source mode.
		 */
		rc = smblib_masked_write(chg, DEBUG_ACCESS_SRC_CFG_REG,
					 EN_UNORIENTED_DEBUG_ACCESS_SRC_BIT,
					 EN_UNORIENTED_DEBUG_ACCESS_SRC_BIT);
@@ -2154,7 +2158,6 @@ static int smb5_configure_typec(struct smb_charger *chg)
			return rc;
		}

	if (chg->chg_param.smb_version != PMI632_SUBTYPE) {
		rc = smblib_masked_write(chg, USBIN_LOAD_CFG_REG,
				USBIN_IN_COLLAPSE_GF_SEL_MASK |
				USBIN_AICL_STEP_TIMING_SEL_MASK,