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:
Kenny Kessler 2018-10-15 09:22:41 -05:00 • committed by Kenneth Kessler
commit 1727ea0026

View file

@ -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);
}