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:
Subbaraman Narayanamurthy <subbaram@codeaurora.org>
Loading
Please register or sign in to comment