power: qpnp-smbcharger: fix battery status reporting
Charger driver reports battery FULL status based on the
BAT_TCC_REACHED_RT_STS bit, there is a possibility of
this bit remaining set even after removal of charger
resulting in reporting of FULL status with no input present.
Fix this by reporting DISCHARGING if no input is present
before checking for BAT_TCC_REACHED_RT_STS bit.
CRs-Fixed: 851399
Change-Id: Ice43e758e0ecf31ac0ec3ccff0578a4558b77b31
Signed-off-by:
Ashay Jaiswal <ashayj@codeaurora.org>
Loading
Please register or sign in to comment