OSDN Git Service

qcom: smblib: report discharging in case of input OV
authorHarry Yang <harryy@codeaurora.org>
Mon, 17 Apr 2017 23:41:19 +0000 (16:41 -0700)
committerHarry Yang <harryy@codeaurora.org>
Tue, 18 Apr 2017 01:19:59 +0000 (18:19 -0700)
commitd8c64ab4211b099e25597316a956c7455af4dd56
tree7293b7563b684a27c91149267b5f41244be2fa48
parentd5311c5d4300455a7597b7edae08caba84c0a7f8
qcom: smblib: report discharging in case of input OV

The register BATTERY_CHARGER_STATUS continues to show charging state
(like FULLON or TAPER mode) in cases where charging was paused due
to input OV. Look at BATTERY_CHARGER_STATUS_7_REG to determine if
charging was paused.

This fix modifies previous similar change for JEITA hard condition but
continue to cover the case.

Change-Id: Ibc5f4f5e85651708b656f06814008b0c319db02d
Signed-off-by: Harry Yang <harryy@codeaurora.org>
drivers/power/supply/qcom/smb-lib.c