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

Commit 28cb6abc authored by Umang Agrawal's avatar Umang Agrawal
Browse files

power: smb: Fix PD ICL configuration flow



Currently, real charger type in case of PD adapter is updated post
ICL configuration. However, ICL configuration routine has a dependency
on the real charger type, henceforth making the ICL configuration
inaccurate. Fix this, by updating the real charger type prior to
ICL configuration.

Change-Id: I9e22b977053f98adf0733612a33de9b83149849d
Signed-off-by: default avatarUmang Agrawal <uagrawal@codeaurora.org>
parent f68bf8e8
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -2888,6 +2888,7 @@ static int __smblib_set_prop_pd_active(struct smb_charger *chg, bool pd_active)

	chg->pd_active = pd_active;
	if (chg->pd_active) {
		chg->real_charger_type = POWER_SUPPLY_TYPE_USB_PD;
		vote(chg->apsd_disable_votable, PD_VOTER, true, 0);
		vote(chg->pd_allowed_votable, PD_VOTER, true, 0);
		vote(chg->usb_irq_enable_votable, PD_VOTER, true, 0);