mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
Turn off load switch during charging
Turn off load switch when charger is attached and paired battery is under charging, but not discharging. Change-Id: Idbd2824c85a43175b8030eeb2e0af2e7a400f27e Signed-off-by: Yonghua Yan <yanyh2@motorola.com> Reviewed-on: https://gerrit.mot.com/2273610 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Jianqi Yang <yangj@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
949abff4c6
commit
e4e70fc2b3
1 changed files with 2 additions and 1 deletions
|
|
@ -2367,7 +2367,8 @@ static void sgm4154x_paired_battery_notify(void *data,
|
|||
low_load_en = false;
|
||||
}
|
||||
|
||||
if (chg_present) {
|
||||
/* Turn off load switch if paired battery is charging */
|
||||
if (chg_present && batt_info->batt_ma > 0) {
|
||||
high_load_en = false;
|
||||
low_load_en = false;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue