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

Commit aa186643 authored by Nicholas Troast's avatar Nicholas Troast Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-fg: print battery SOC after batt profile is loaded



Battery SOC variance between reboots needs to be checked, so
print it during boot. While at it, reduce noise by demoting two
pr_info statements to pr_debug.

CRs-Fixed: 838455
Change-Id: I3c9ceb7de8ac4231e1688e03bc9dff90cade3b65
Signed-off-by: default avatarNicholas Troast <ntroast@codeaurora.org>
parent 6b6b4c37
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -2136,7 +2136,7 @@ static int fg_set_resume_soc(struct fg_chip *chip, u8 threshold)
	if (rc)
		pr_err("write failed rc=%d\n", rc);
	else
		pr_info("setting resume-soc to %x\n", threshold);
		pr_debug("setting resume-soc to %x\n", threshold);

	return rc;
}
@@ -4281,6 +4281,7 @@ done:
	if (chip->power_supply_registered)
		power_supply_changed(&chip->bms_psy);
	fg_relax(&chip->profile_wakeup_source);
	pr_info("Battery SOC: %d\n", get_prop_capacity(chip));
	return rc;
fail:
	chip->batt_type = old_batt_type;
@@ -5438,7 +5439,7 @@ static int fg_8994_hw_init(struct fg_chip *chip)
	if (rc)
		pr_err("failed to write default ESR value rc=%d\n", rc);
	else
		pr_info("set default value to esr filter\n");
		pr_debug("set default value to esr filter\n");

	return 0;
}