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

Skip to content
Commit aa1d3459 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-fg: do not reload identical profiles



Currently the fuel gauge driver always reloads the battery profile upon
probe. Reloading the battery profile will also necessitate an SOC
reestimation. This is undesirable because a settled SOC is usually more
accurate than a first time estimation.

Fix this by comparing the battery profile loaded in SRAM with the one
picked by the fuel gauge driver. If they are identical, then do not
force an SOC reestimation and do not reload the profile.

CRs-Fixed: 720242
Change-Id: I50662d5e5c14b9513fbfcd06b964615db6fcde7e
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent d787f674
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment