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

Commit 4bc22364 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-fg-gen4: Cancel ESR fast calibration timer properly



Set esr_fast_calib flag to false after disabling ESR fast
calibration in the case of a debug battery so that alarm timer is
cancelled as expected.

Change-Id: Idb085e95c60ec0279851d007cb369d2902386082
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 5dc7d771
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2493,8 +2493,8 @@ static void profile_load_work(struct work_struct *work)
out:
	if (!chip->esr_fast_calib || is_debug_batt_id(fg)) {
		/* If it is debug battery, then disable ESR fast calibration */
		chip->esr_fast_calib = false;
		fg_gen4_esr_fast_calib_config(chip, false);
		chip->esr_fast_calib = false;
	}

	if (chip->dt.multi_profile_load && rc < 0)