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

Commit feb95009 authored by Harry Yang's avatar Harry Yang
Browse files

power: smblib: reset CTM ICL vote upon USB removal



Currently, CTM input current limiting vote remains after USB detachment,
and can be outdated right after USB reinsertion.

Cancel the vote upon USB removal.

Change-Id: Iecc4f36030328f8e68845f90ad19e8558b895362
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent 003ee1e0
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -4007,6 +4007,7 @@ static void smblib_handle_typec_removal(struct smb_charger *chg)
	vote(chg->usb_icl_votable, PL_USBIN_USBIN_VOTER, false, 0);
	vote(chg->usb_icl_votable, SW_QC3_VOTER, false, 0);
	vote(chg->usb_icl_votable, OTG_VOTER, false, 0);
	vote(chg->usb_icl_votable, CTM_VOTER, false, 0);

	/* reset hvdcp voters */
	vote(chg->hvdcp_disable_votable_indirect, VBUS_CC_SHORT_VOTER, true, 0);