Fix bugs about step-chg-jeita
1. JEITA FV compensation cannot work 2. Cannot charge when battery capacity is 0% 3. Wrong debug message Change-Id: I32ecb77b4c1dd8073cbf5aec070c3e6fcadc1dd2
This commit is contained in:
parent
7ba162b3ae
commit
0172172434
2 changed files with 3 additions and 2 deletions
|
@ -1361,7 +1361,7 @@ int qcom_batt_init(void)
|
|||
goto release_wakeup_source;
|
||||
}
|
||||
|
||||
chip->fv_votable = create_votable("FV", VOTE_MAX,
|
||||
chip->fv_votable = create_votable("FV", VOTE_MIN,
|
||||
pl_fv_vote_callback,
|
||||
chip);
|
||||
if (IS_ERR(chip->fv_votable)) {
|
||||
|
|
|
@ -164,6 +164,7 @@ static int get_val(struct range_data *range, int hysteresis, int current_index,
|
|||
range[i].high_threshold, threshold)) {
|
||||
*new_index = i;
|
||||
*val = range[i].value;
|
||||
break;
|
||||
}
|
||||
|
||||
/* if nothing was found, return -ENODATA */
|
||||
|
@ -337,7 +338,7 @@ static int handle_jeita(struct step_chg_info *chip)
|
|||
vote(chip->fv_votable, JEITA_VOTER, true, fv_uv);
|
||||
|
||||
pr_debug("%s = %d FCC = %duA FV = %duV\n",
|
||||
step_chg_config.prop_name, pval.intval, fcc_ua, fv_uv);
|
||||
jeita_fv_config.prop_name, pval.intval, fcc_ua, fv_uv);
|
||||
|
||||
update_time:
|
||||
chip->jeita_last_update_time = ktime_get();
|
||||
|
|
Loading…
Add table
Reference in a new issue