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

Commit 594c08df authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents c650816c 7242f5b6
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;