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

Commit 7242f5b6 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-fg: do not hold soc at 100% if jeita is active



When the battery temperature is warm or cool, the charger vfloat will be
automatically reduced due to JEITA. In this case, do not hold SOC at
100% or it could last for a very long time before SOC drops.

CRs-Fixed: 919861
Change-Id: Ia8ddae92fec450f3ed682c91faa58c6b86ce3846
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 87bcf4a6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -3265,7 +3265,8 @@ static void status_change_work(struct work_struct *work)
	int cc_soc, rc, capacity = get_prop_capacity(chip);

	if (chip->status == POWER_SUPPLY_STATUS_FULL) {
		if (capacity >= 99 && chip->hold_soc_while_full) {
		if (capacity >= 99 && chip->hold_soc_while_full
				&& chip->health == POWER_SUPPLY_HEALTH_GOOD) {
			if (fg_debug_mask & FG_STATUS)
				pr_info("holding soc at 100\n");
			chip->charge_full = true;