mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 14:19:09 -04:00
charging: ignore setting qc icl when pd active
when user insert PD charger which also supply qc protocol, QC ICL setting will overlay PD ICL setting. So ignore it. Change-Id: Ic18b8a17e55c6a6131e77d96b584a245ca793496 Signed-off-by: mahj8 <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2192867 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Huosheng Liao <liaohs@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
b096b71953
commit
35120df1da
1 changed files with 3 additions and 0 deletions
|
|
@ -1804,6 +1804,9 @@ static void mmi_handle_hvdcp_check_timeout(struct mmi_discrete_charger *chg,
|
|||
{
|
||||
u32 hvdcp_ua = 0;
|
||||
|
||||
if (chg->pd_active)
|
||||
return;
|
||||
|
||||
if (hvdcp_done) {
|
||||
hvdcp_ua = (chg->real_charger_type ==
|
||||
POWER_SUPPLY_TYPE_USB_HVDCP) ?
|
||||
|
|
|
|||
Loading…
Reference in a new issue