mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 15:11:48 -04:00
charging: Ignore the PD vote icl unless BC1.2 done
Third charging ic IINLIM bits will be changed auto when BC1.2 done. So we need to Ignore the PD vote icl untill BC1.2 done. Change-Id: I394f80b71c427e5b2a98b6012aeb7a852329ce4f Signed-off-by: mahj8 <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2150599 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lu Chai <chailu1@motorola.com> Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b04c4e14c3
commit
3f275d7116
1 changed files with 12 additions and 3 deletions
|
|
@ -925,9 +925,18 @@ static void mmi_discrete_config_pd_charger(struct mmi_discrete_charger *chg)
|
|||
}
|
||||
mmi_set_pd30_cap(chg, req_pdo, req_pd_volt, req_pd_curr);
|
||||
}
|
||||
rc = vote(chg->usb_icl_votable, PD_VOTER, true, req_pd_curr * 1000);
|
||||
if (rc < 0)
|
||||
mmi_info(chg, "vote PD USB_ICL failed %duA\n", req_pd_curr);
|
||||
|
||||
/*
|
||||
* Third charging ic IINLIM bits will be changed auto
|
||||
* when BC1.2 done. So we need to Ignore the PD
|
||||
* vote unless BC1.2 done.
|
||||
*/
|
||||
if (chg->real_charger_type != POWER_SUPPLY_TYPE_UNKNOWN) {
|
||||
rc = vote(chg->usb_icl_votable, PD_VOTER, true, req_pd_curr * 1000);
|
||||
if (rc < 0)
|
||||
mmi_info(chg, "vote PD USB_ICL failed %duA\n", req_pd_curr);
|
||||
} else
|
||||
mmi_info(chg, "Ignore PD VOTER ICL before bc1.2\n");
|
||||
|
||||
mmi_info(chg,
|
||||
"Request PD power, fixed %d, pps %d, pdo %d, "
|
||||
|
|
|
|||
Loading…
Reference in a new issue