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

Commit 7b429571 authored by Harry Yang's avatar Harry Yang
Browse files

power: smblib: correct PD voting when inactive



Currently, when becoming inactive, PD leaves the HDC and input
limited interrupt enabled.

Correct it by disabling it.

Change-Id: I62a1d837f6126951cb428a982fe1d8876f1d5bdc
Signed-off-by: default avatarHarry Yang <harryy@codeaurora.org>
parent aa39052a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2792,7 +2792,7 @@ int smblib_set_prop_pd_active(struct smb_charger *chg,
		hvdcp = stat & QC_CHARGER_BIT;
		vote(chg->apsd_disable_votable, PD_VOTER, false, 0);
		vote(chg->pd_allowed_votable, PD_VOTER, true, 0);
		vote(chg->usb_irq_enable_votable, PD_VOTER, true, 0);
		vote(chg->usb_irq_enable_votable, PD_VOTER, false, 0);
		vote(chg->hvdcp_disable_votable_indirect, PD_INACTIVE_VOTER,
								false, 0);