mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-10 22:40:54 -04:00
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:
parent
7c02900620
commit
cc367ccc9d
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue