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

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

power: pm8921-charger: disable battery temperature wakeup



The battery temperature interrupts are functional only when there is a
valid charger source present. There is no point making it a wakeup
interrupt, since if the charger is absent the interrupt wont be
triggered (if it is triggered it should be ignored).

Note that for 8921 charging, the software does not take any action if
the battery gets hot/cold. The 8921 hardware state machine stops
charging if the battery temperature goes out of the limits.

For external chargers which depend on the temperature monitoring of
8921, we rely on the fact that the external charger will hold a wakelock
and avoid sleep as long as charging is in progress.

In cases when external charging is finished and the system did go into
suspend, we don't want to wakeup the device only to realize that external
charging was not in progress.

Basically no case requires that we wakeup from battery temperature
interrupts.

Change-Id: Idf2cf7f40780cf46ba95228764790b818bc72db5
CRs-Fixed: 395312
Signed-off-by: default avatarAbhijeet Dharmapurikar <adharmap@codeaurora.org>
parent 4c40cbfc
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