mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 00:24:41 -04:00
qpnp-smbcharger-mmi: fix wireless charging state machine
State machine doesn't work with wireless charging because it does not trigger the charger_present variable. Account for this by also checking for wls online. Change-Id: Ib7ce5d3ec1374df614c196329820b766032ad5bf Signed-off-by: Ryan Lattrel <ryanl@motorola.com> Reviewed-on: https://gerrit.mot.com/1451157 SLTApproved: Slta Waiver SME-Granted: SME Approvals Granted Tested-by: Jira Key Reviewed-by: Cesar Augusto Marcelino dos Santos <cmsantos@motorola.com> Reviewed-by: Ling Jin <lingjin@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
94adf3d4bf
commit
65e562459f
1 changed files with 1 additions and 1 deletions
|
|
@ -2552,7 +2552,7 @@ static void mmi_basic_charge_sm(struct smb_mmi_charger *chip,
|
|||
mmi_find_temp_zone(chip, prm, stat->batt_temp);
|
||||
zone = &prm->temp_zones[prm->pres_temp_zone];
|
||||
|
||||
if (!stat->charger_present) {
|
||||
if (!stat->charger_present && !is_wls_online(chip)) {
|
||||
prm->pres_chrg_step = STEP_NONE;
|
||||
} else if ((prm->pres_temp_zone == ZONE_HOT) ||
|
||||
(prm->pres_temp_zone == ZONE_COLD) ||
|
||||
|
|
|
|||
Loading…
Reference in a new issue