To fix phone can not charge fully
Change-Id: I5cf21af81ca3ceb84e56cb5c9c2c6f39bfae10b1
diff --git a/drivers/power/supply/qcom/qpnp-smb5.c b/drivers/power/supply/qcom/qpnp-smb5.c
index a441073..615fdb1 100644
--- a/drivers/power/supply/qcom/qpnp-smb5.c
+++ b/drivers/power/supply/qcom/qpnp-smb5.c
@@ -2075,6 +2075,15 @@
}
}
+//<2020/05/07-JessicaTseng, Enable AICL rerun periodically
+ /* AICL PERIODIC RERUN ENABLE*/
+ rc = smblib_write(chg, USBIN_AICL_OPTIONS_CFG_REG, 0xD4);
+ if (rc < 0) {
+ dev_err(chg->dev, "Couldn't config RERUN AICL ENABLE rc=%d\n", rc);
+ return rc;
+ }
+//>2020/05/07-JessicaTseng
+
/* enable the charging path */
rc = vote(chg->chg_disable_votable, DEFAULT_VOTER, false, 0);
if (rc < 0) {
diff --git a/drivers/power/supply/qcom/step-chg-jeita.c b/drivers/power/supply/qcom/step-chg-jeita.c
index 63b3950..f800b85 100644
--- a/drivers/power/supply/qcom/step-chg-jeita.c
+++ b/drivers/power/supply/qcom/step-chg-jeita.c
@@ -502,10 +502,12 @@
return (STEP_CHG_HYSTERISIS_DELAY_US - elapsed_us + 1000);
}
-#define JEITA_SUSPEND_HYST_UV 50000
+//<2020/05/07-JessicaTseng, Modify recharging voltage from 4.05V to 3.9V at battery temperature over 45 degree
+#define JEITA_SUSPEND_HYST_UV 200000//50000
//<2020/04/28-JessicaTseng, Setting jeita fv re-charge voltage for warm temp
#define JEITA_RECHG_HYST_UV 200000//100000
//>2020/04/28-JessicaTseng
+//>2020/05/07-JessicaTseng
static int handle_jeita(struct step_chg_info *chip)
{