mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
power: qpnp-smbcharger-mmi: Block SM in Factory
No need to run SM in Factory mode. Check for factory mode and skip the Charge SM if true. Change-Id: I62a32a7dbe45cf0bdc6695e5c98e33852b97f9e8 Signed-off-by: Kenny Kessler <kenny.kessler@motorola.com> Reviewed-on: https://gerrit.mot.com/1255777 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Kenneth Kessler <kennykessler@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
a3771bcf7d
commit
1727ea0026
1 changed files with 1 additions and 1 deletions
|
|
@ -1766,7 +1766,7 @@ static void mmi_heartbeat_work(struct work_struct *work)
|
|||
if (rc < 0)
|
||||
pr_err("SMBMMI: Couldn't set batt psy cap\n");
|
||||
}
|
||||
} else {
|
||||
} else if (!chip->factory_mode) {
|
||||
/* Fall here for Basic Step and Thermal Charging */
|
||||
mmi_basic_charge_sm(chip, &chg_stat);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue