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

Commit bb58db2d authored by Ashish Chavan's avatar Ashish Chavan
Browse files

power: smb1398: Fix SOC based SMB enable condition



The existing logic allows SMB's to enable even if the
SOC is above the cutoff-threshold. Fix it by negating
this logic.

Change-Id: I294874754e79557f12b76c383a6e79d90008acc5
Signed-off-by: default avatarAshish Chavan <ashichav@codeaurora.org>
parent c8980a40
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1587,7 +1587,7 @@ static void smb1398_status_change_work(struct work_struct *work)
	 * valid due to the battery discharging later, remove
	 * vote from CUTOFF_SOC_VOTER.
	 */
	if (is_cutoff_soc_reached(chip))
	if (!is_cutoff_soc_reached(chip))
		vote(chip->div2_cp_disable_votable, CUTOFF_SOC_VOTER, false, 0);

	rc = power_supply_get_property(chip->usb_psy,