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:
mahj8 2022-02-17 11:40:53 +08:00 • committed by Haijian Ma
commit 35120df1da

View file

@ -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) ?