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

Commit 75111a55 authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy
Browse files

power: qpnp-fg: validate temperature reading



When the FG algorithm is stuck, the temperature read from SRAM
may be incorrect. To handle this scenario, validate the
temperature read from SRAM with the specified limits before
updating power supply property. Without this, userspace will get
a false alarm of extreme battery temperature and initiates a
shutdown immediately. Default battery temperature low and high
limits are -60C and 150C respectively.

Battery temperature limits can be configured through the
following device tree properties.
- qcom,fg-batt-temp-low-limit
- qcom,fg-batt-temp-high-limit

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