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

Skip to content
Commit 4129f278 authored by Xiaozhe Shi's avatar Xiaozhe Shi Committed by Stephen Boyd
Browse files

power: qpnp-charger: Fix corner cases for soc based resume



Currently SoC based resume only triggers when SoC is queried. This
does not happen when the charger is inserted/removed, so sometimes
when the battery is almost full and the charger is inserted, charging
will not resume even though SoC is below the set resume limit. Fix
this by scheduling work to read the SoC when usb is inserted.

Also, SoC based resume only checks for battery status to be full.
However if charging never finished, there can be a case where battery
status reads discharging but the charger is connected. In this case
SoC based resume should restart charging. Fix this by checking for
battery status to be not charging instead of full.

Change-Id: I74d318ac4a9b45f0de31c885319c38f6e2732060
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent 0f1c8e96
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