Commit 57d9528d authored by Subbaraman Narayanamurthy's avatar Subbaraman Narayanamurthy Committed by Gerrit - the friendly Code Review server
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 41d5cd64
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment