mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
mmi_charger:optimize the pump policy
Sometimes the pump can't recovery if disabled accidentally. The recovery_pmic_chrg flag should reset to 0. Change-Id: I01119c6531ca42aa7e92d590cca9989ce18a53b0 Signed-off-by: Lei Chen <chenlei18@lenovo.com> Reviewed-on: https://gerrit.mot.com/2630990 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Wei Xu <xuwei9@lenovo.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
4cccb0285a
commit
1757a8c181
2 changed files with 2 additions and 0 deletions
|
|
@ -198,6 +198,7 @@ void mmi_chrg_enable_all_cp(struct mmi_charger_manager *chip, int val)
|
|||
cancel_delayed_work_sync(&chip->mmi_chrg_sm_work);
|
||||
mmi_chrg_sm_move_state(chip, PM_STATE_CHRG_PUMP_ENTRY);
|
||||
chip->cp_disable = false;
|
||||
chip->recovery_pmic_chrg = false;
|
||||
schedule_delayed_work(&chip->mmi_chrg_sm_work,
|
||||
msecs_to_jiffies(0));
|
||||
|
||||
|
|
|
|||
|
|
@ -195,6 +195,7 @@ void mmi_qc3p_chrg_enable_all_cp(struct mmi_charger_manager *chip, int val)
|
|||
cancel_delayed_work_sync(&chip->mmi_qc3p_chrg_sm_work);
|
||||
mmi_chrg_qc3p_sm_move_state(chip, PM_QC3P_STATE_CHRG_PUMP_ENTRY);
|
||||
chip->cp_disable = false;
|
||||
chip->qc3p_recovery_pmic_chrg = false;
|
||||
schedule_delayed_work(&chip->mmi_qc3p_chrg_sm_work,
|
||||
msecs_to_jiffies(0));
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue