Revert "(CR): charging: fixed logic error"

Moved rerun APSD for SDP/OCP/Float to smb5-lib.c

CRs-fixed:(CR)

This reverts commit b1102eb24c2caa51f8c5138aadb1ac3b2b7225a9.
Change-Id: Ieaec244e6036d9a9522290171635082f9339fb88
Reviewed-on: https://gerrit.mot.com/1445262
SME-Granted: SME Approvals Granted
Reviewed-by: Huosheng Liao <liaohs@motorola.com>
SLTApproved: Slta Waiver
Tested-by: Jira Key
Submit-Approved: Jira Key
This commit is contained in:
Haijian Ma 2019-10-28 15:39:01 +08:00
commit 050bd692b6

View file

@ -2956,11 +2956,9 @@ static void mmi_heartbeat_work(struct work_struct *work)
mmi_info(chip, "APSD = %d, rerun_apsd_count = %d\n",
apsd, rerun_apsd_count);
}
} else if (rerun_apsd_count && !chg_stat.charger_present) {
} else if (rerun_apsd_count) {
rerun_apsd_count = 0;
cancel_delayed_work(&chip->charger_check_work);
mmi_info(chip, "reset rerun_apsd_count = %d\n",
rerun_apsd_count);
}
mmi_chrg_rate_check(chip);