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

Commit 8207ee4f authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

smb-lib: skip legacy detection workaround for micro USB



Legacy cable detection is not valid for micro USB, skip
scheduling of legacy detection workaround for micro USB
mode.

CRs-Fixed: 2149168
Change-Id: I7c56331c6b793e32b45bf64a22dc189b2ee2518e
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent a8118139
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -2845,7 +2845,9 @@ static int __smblib_set_prop_pd_active(struct smb_charger *chg, bool pd_active)
		 * more, but it may impact compliance.
		 */
		sink_attached = chg->typec_status[3] & UFP_DFP_MODE_STATUS_BIT;
		if (!chg->typec_legacy_valid && !sink_attached && hvdcp)
		if ((chg->connector_type != POWER_SUPPLY_CONNECTOR_MICRO_USB)
				&& !chg->typec_legacy_valid
				&& !sink_attached && hvdcp)
			schedule_work(&chg->legacy_detection_work);
	}