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

Commit fb2e7e98 authored by Ashay Jaiswal's avatar Ashay Jaiswal
Browse files

power: qcom-charger: fix minor bugs in parallel path



"icl_reduction_ua" is not updated to new slave ICL value after
ICL split, update the variable.

Change-Id: I944fddfda1aa2c359785d1a3155ac22ebe91fa65
Signed-off-by: default avatarAshay Jaiswal <ashayj@codeaurora.org>
parent 6477a9e9
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -2664,7 +2664,6 @@ int smblib_set_icl_reduction(struct smb_charger *chg, int reduction_ua)
	int current_ua, rc;

	if (reduction_ua == 0) {
		chg->icl_reduction_ua = 0;
		vote(chg->usb_icl_votable, PL_USBIN_USBIN_VOTER, false, 0);
	} else {
		/*
@@ -2682,6 +2681,8 @@ int smblib_set_icl_reduction(struct smb_charger *chg, int reduction_ua)
		}
	}

	chg->icl_reduction_ua = reduction_ua;

	return rerun_election(chg->usb_icl_votable);
}