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

Commit e543bd62 authored by Zhao Xuewen's avatar Zhao Xuewen Committed by Bernhard Thoben
Browse files

power:qpnp-charger: extended charge time from 30s to 100s when battery status is near to full



When charger is online for a long time, such as 12 hour, the battery status changes from charging to full and resumes charging.
The reason is that battery is not full at the first full state. So increse charge time from 30s to 100s when battery status is
near to full. This methods will reduce the number of recharging times

BUG:24316771
Signed-off-by: default avatarl00228880 <l00228880@notesmail.huawei.com>
Signed-off-by: default avatarPranav Vashi <neobuddy89@gmail.com>
Signed-off-by: default avatarJoe Maples <joe@frap129.org>
parent 58bf6a0b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3778,7 +3778,7 @@ qpnp_chg_adjust_vddmax(struct qpnp_chg_chip *chip, int vbat_mv)
	qpnp_chg_set_appropriate_vddmax(chip);
}

#define CONSECUTIVE_COUNT	3
#define CONSECUTIVE_COUNT	10
#define VBATDET_MAX_ERR_MV	50
static void
qpnp_eoc_work(struct work_struct *work)