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

Skip to content
Commit 1dc7cf46 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Gerrit - the friendly Code Review server
Browse files

power: qpnp-fg-gen4: add MSOC for slope limiting in FVSS



Currently, Vbatt_avg alone is used to calculate the SOC in
filtered voltage based SOC scaling (FVSS). This works fine
mostly. However, when the battery temperature is low and ESR
increases, MSOC calculated by HW tracks it better. SW calculated
SOC stays at the same value for a longer period because Vbatt_avg
goes high as soon as the battery temperature comes back to
normal and this impacts the user experience. Fix this by taking
in MSOC from HW into account while slope limiting the SOC.

While at it, add a separate debug mask for FVSS logs.

Change-Id: Id5d2b923ac31a28cb65dec7d3032c86e484c579c
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 5dc7d771
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment