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

Skip to content
Commit 433f5bb2 authored by Abhijeet Dharmapurikar's avatar Abhijeet Dharmapurikar Committed by Stephen Boyd
Browse files

power: pm8921-bms: fix sleep discharge issue



There is an issue when the battery voltage drops very low causing
system to shutdown, while apps is suspended. There is no BMS running
to report 0% capacity and triggering the low battery shutdown process.

To avoid this situation prevent suspend when the battery voltage is
close to cutoff voltage + 20mV to allow for some buffer.

Note that the battery may temporarily dip in this range while the
load is high, release the wakelock later if the battery voltage
rises above this range.

Also, note that there exists a mechanism (battery alarm) in the
charger driver which wakes up the device if battery voltage falls.
Rely on the charger to wake up when the battery falls low.

CRs-Fixed: 400183
Change-Id: I1f4b65cba149480fb4a8f91667ce45a876dff2f0
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent c4a5eb4b
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