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

Commit 227ab376 authored by Xiaozhe Shi's avatar Xiaozhe Shi
Browse files

power: qpnp-smbcharger: only set CHARGE_DONE if terminated



The charger sets the POWER_SUPPLY_PROP_CHARGE_DONE on the bms power
supply during the chg_term interrupt handler function regardless of
whether charging actually terminated. In the cases of an instant
recharge trigger or manually calling the interrupt handler, the
CHARGE_DONE property will be falsely set.

Fix this by checking the real time status bit of the termination
interrupt before setting the charge_done property on the bms power
supply.

CRs-Fixed: 899712
Change-Id: I27e5969e462caba644e58095d6885e3b7e3c4523
Signed-off-by: default avatarXiaozhe Shi <xiaozhes@codeaurora.org>
parent c8df36dc
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