summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSubbaraman Narayanamurthy <subbaram@codeaurora.org>2016-10-05 15:22:04 -0700
committerSubbaraman Narayanamurthy <subbaram@codeaurora.org>2016-10-06 14:55:13 -0700
commit477a7554f3e8ef966cb425adf75618661e8a5305 (patch)
tree6f0aa3bc7bd9ca0dd7f693e20e5b8af320e2e637
parent8ec8b328f3c5248b1a728d08f1fc356f0d4a6fc6 (diff)
qpnp-smb2: do not configure BATT_OV to end charging cycle
Currently, we configure charger to end the charging cycle when battery overvoltage is detected. This ends up the charging cycle prematurely sometimes when charging phase transitions from fast to taper. Disable this. Change-Id: I8ac486fcb10e823671a8e8b438b7fc76a8969b7c Signed-off-by: Subbaraman Narayanamurthy <subbaram@codeaurora.org>
-rw-r--r--drivers/power/qcom-charger/qpnp-smb2.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/drivers/power/qcom-charger/qpnp-smb2.c b/drivers/power/qcom-charger/qpnp-smb2.c
index 57f31d8c58e7..522c89d3bb67 100644
--- a/drivers/power/qcom-charger/qpnp-smb2.c
+++ b/drivers/power/qcom-charger/qpnp-smb2.c
@@ -992,14 +992,10 @@ static int smb2_init_hw(struct smb2 *chip)
vote(chg->dc_icl_votable,
DEFAULT_VOTER, true, chip->dt.dc_icl_ua);
- /*
- * Configure charge enable for software control; active high, and end
- * the charge cycle while the battery is OV.
- */
+ /* Configure charge enable for software control; active high */
rc = smblib_masked_write(chg, CHGR_CFG2_REG,
CHG_EN_POLARITY_BIT |
- CHG_EN_SRC_BIT |
- BAT_OV_ECC_BIT, BAT_OV_ECC_BIT);
+ CHG_EN_SRC_BIT, 0);
if (rc < 0) {
dev_err(chg->dev, "Couldn't configure charger rc=%d\n", rc);
return rc;