charging: delay 100ms to rerun apsd when charger inserted

As sc89890H can't rerun apsd successful, add delay 100ms
to wait IC idle and then rerun apsd to workaround this issue.

Change-Id: I80f4efcbdbdd8244628ce65eb45368c03798af69
Signed-off-by: mahj8 <mahj8@motorola.com>
Reviewed-on: https://gerrit.mot.com/2252095
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-04-25 16:21:42 +08:00 • committed by Haijian Ma
commit cc367ccc9d

View file

@ -2203,6 +2203,8 @@ static void bq2589x_adapter_in_func(struct bq2589x *bq)
&& (!bq->typec_apsd_rerun_done)) {
down(&bq->sem_dpdm);
dev_err(bq->dev, "rerun apsd for 0x%x\n", bq->vbus_type);
if (bq->part_no == SC89890H)
msleep(100);
bq2589x_rerun_apsd_if_required(bq);
up(&bq->sem_dpdm);
return;