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

Commit ec7e8b08 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: validate cc_soc in case of a FG lockup



When there is a FG lockup, there is a chance of CC_SOC value to
go beyond the limits. Validate cc_soc while handling every delta
soc interrupt. If it is out of range (e.g. > 100%), then trigger
the IMA error recovery sequence. At the end of it, restore a
valid cc_soc back to SRAM.

Device tree property "qcom,fg-cc-soc-limit-pct" is added to
specify the CC_SOC limit as a percentage.

CRs-Fixed: 962694
Change-Id: I9bc064d5d890d734e7806da03e5c068fde011986
Signed-off-by: default avatarSubbaraman Narayanamurthy <subbaram@codeaurora.org>
parent 75111a55
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