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

Commit 3515731b authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "smb-lib: skip legacy detection workaround for micro USB"

parents da73b938 8207ee4f
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);
	}