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

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

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

parents eba0b68e 47b49261
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,