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

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

Merge "power: smblib: make OTG_VOTER suspend input only in OTG state"

parents e4ee075d ca0664e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3946,7 +3946,8 @@ static void smblib_handle_typec_cc_state_change(struct smb_charger *chg)
	}

	/* suspend usb if sink */
	if (chg->typec_status[3] & UFP_DFP_MODE_STATUS_BIT)
	if ((chg->typec_status[3] & UFP_DFP_MODE_STATUS_BIT)
			&& chg->typec_present)
		vote(chg->usb_icl_votable, OTG_VOTER, true, 0);
	else
		vote(chg->usb_icl_votable, OTG_VOTER, false, 0);