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

Commit 4e25af6b 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-gen3: Restore the recharge threshold when out of JEITA"

parents 5c29b94a e9427074
Loading
Loading
Loading
Loading
+9 −1
Original line number Diff line number Diff line
@@ -2141,7 +2141,15 @@ static int fg_adjust_recharge_soc(struct fg_chip *chip)
				chip->recharge_soc_adjusted = true;
			} else {
				/* adjusted already, do nothing */
				if (chip->health != POWER_SUPPLY_HEALTH_GOOD)
					return 0;

				/*
				 * Device is out of JEITA so restore the
				 * default value
				 */
				new_recharge_soc = recharge_soc;
				chip->recharge_soc_adjusted = false;
			}
		} else {
			if (!chip->recharge_soc_adjusted)