mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-09 05:39:54 -04:00
power: adjust 27w charge policy, optimize charge performance
-1,add force_pmic_chg judgement lable in order to avoid recovery paralle charge when the thermal zone was changed Change-Id: I2e1a9fe3ae564b6a58957c4e5eb5f640e234d737 Signed-off-by: xuwt2 <xuwt2@lenovo.com> Reviewed-on: https://gerrit.mot.com/1230716 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
8fdf190aee
commit
d1f48b738a
1 changed files with 3 additions and 1 deletions
|
|
@ -979,7 +979,8 @@ static void mmi_pl_sm_work_func(struct work_struct *work)
|
|||
mmi_pl_pm_move_state(chip, PM_STATE_SW_ENTRY);
|
||||
} else if (chip->flashc_cc_max_curr_pre >
|
||||
chip->pmic_step_curr
|
||||
&& chip->pres_chrg_step < STEP_NORMAL) {
|
||||
&& chip->pres_chrg_step < STEP_NORMAL
|
||||
&& !chip->force_pmic_chg) {
|
||||
mmi_pl_dbg(chip, PR_MOTO,
|
||||
"battery volt %d , flashc max curr %d,"
|
||||
"start flash charging\n",
|
||||
|
|
@ -1700,6 +1701,7 @@ static void cancel_sm(struct mmi_pl_chg_manager *chip, int ms)
|
|||
chip->target_volt = 0;
|
||||
chip->pps_current_max = 0;
|
||||
chip->pps_voltage_max = 0;
|
||||
chip->force_pmic_chg = false;
|
||||
memset(chip->mmi_pdo_info, 0,
|
||||
sizeof(struct usbpd_pdo_info) * PD_MAX_PDO_NUM);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue