For some reason the charger device gets disconnected prior we have 100 mA current. Set the fully charged state detection current to 112 mA. Signed-off-by: Arthur Demchenkov <spinal.by@xxxxxxxxx> --- drivers/power/supply/cpcap-battery.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/power/supply/cpcap-battery.c b/drivers/power/supply/cpcap-battery.c index 517acdfa6009..938117638983 100644 --- a/drivers/power/supply/cpcap-battery.c +++ b/drivers/power/supply/cpcap-battery.c @@ -411,10 +411,10 @@ static bool cpcap_battery_full(struct cpcap_battery_ddata *ddata) (ddata->config.bat.constant_charge_voltage_max_uv - 18000)) { is_full = false; } else if (is_full) { - if (state->current_ua < -150000) + if (state->current_ua < -170000) is_full = false; - } else if (state->current_ua >= -150000 && - cpcap_battery_cc_get_avg_current(ddata) >= -100000) { + } else if (state->current_ua >= -170000 && + cpcap_battery_cc_get_avg_current(ddata) >= -112000) { is_full = true; } -- 2.11.0