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

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

power: qpnp-bms: use minimum iavg upon boot if nothing is stored



Previously, the BMS driver takes fresh average curernt samples upon boot
if there is no shutdown SoC stored. However, this creates a lot of
problems when booting up at low SoCs because the IAVG is huge upon boot.
This creates an issue where UUC is pulled very high and SoC is pulled
very low.

Fix this by always using the minimal iavg if nothing is stored at
shutdown.

Change-Id: Ib7747e3b4ee2a07a952a73e613146d8766be47cd
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 4d238cc7
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