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

Commit 6c9da9fc 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: Report time_to_full only after SOC is ready"

parents 7bb7a867 476e837b
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2943,6 +2943,9 @@ static int fg_get_time_to_full_locked(struct fg_chip *chip, int *val)
		t_predicted_cv, t_predicted = 0;
	s64 delta_ms;

	if (!chip->soc_reporting_ready)
		return -ENODATA;

	if (chip->bp.float_volt_uv <= 0) {
		pr_err("battery profile is not loaded\n");
		return -ENODATA;