charging: don't update qc3.0 type to core when rerun apsd

when rerun apsd, don't report qc3.0 charger type to core
to avoid qc3.0 pluse invalid for impedance.

Change-Id: Ib8309d341da386ee35374cfab2a63e1dad312182
Signed-off-by: Haijian Ma <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2324271
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:
Haijian Ma 2022-07-06 16:20:55 +08:00
commit 818fa467f8
2 changed files with 4 additions and 0 deletions

View file

@ -1899,6 +1899,7 @@ static int bq2589x_detected_qc3p_hvdcp(struct bq2589x *bq, int *charger_type)
msleep(30);//need tunning
bq2589x_rerun_apsd_if_required(bq);
return -1;
}
return 0;
@ -1971,6 +1972,7 @@ static int bq2589x_detected_qc3p_hvdcp(struct bq2589x *bq, int *charger_type)
msleep(30);//need tunning
bq2589x_rerun_apsd_if_required(bq);
return -1;
}
}

View file

@ -1715,6 +1715,7 @@ static int sgm4154x_detected_qc3p_hvdcp(struct sgm4154x_device *sgm, int *charge
msleep(30);//need tunning
schedule_work(&sgm->rerun_apsd_work);
return -1;
}
return 0;
@ -1787,6 +1788,7 @@ static int sgm4154x_detected_qc3p_hvdcp(struct sgm4154x_device *sgm, int *charge
msleep(30);//need tunning
schedule_work(&sgm->rerun_apsd_work);
return -1;
}
}