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:
1 parent
949abff4c6
commit
e4e70fc2b3
1 file changed
+2
-1
@@ -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;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user