mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 14:13:01 -04:00
charging: clear charger type variable
This is a kthread api, charger type don't clear before qc protocol detected. Change-Id: I9da28f985e99df0c60e30f3e835dcf00c6922621 Signed-off-by: mahj8 <mahj8@motorola.com> Reviewed-on: https://gerrit.mot.com/2192868 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
35120df1da
commit
56ee046b8d
2 changed files with 2 additions and 0 deletions
|
|
@ -2032,6 +2032,7 @@ static int mmi_hvdcp_detect_kthread(void *param)
|
|||
out:
|
||||
bq2589x_set_input_current_limit(bq, bq->input_current_cache);
|
||||
bq->mmi_is_qc3_authen = false;
|
||||
charger_type = POWER_SUPPLY_TYPE_UNKNOWN;
|
||||
up(&bq->sem_dpdm);
|
||||
dev_info(bq->dev, "mmi_hvdcp_detect_kthread end\n");
|
||||
}while(!kthread_should_stop());
|
||||
|
|
|
|||
|
|
@ -1814,6 +1814,7 @@ static int mmi_hvdcp_detect_kthread(void *param)
|
|||
out:
|
||||
sgm4154x_set_input_curr_lim(sgm, sgm->input_current_cache);
|
||||
sgm->mmi_is_qc3_authen = false;
|
||||
charger_type = POWER_SUPPLY_TYPE_UNKNOWN;
|
||||
up(&sgm->sem_dpdm);
|
||||
dev_info(sgm->dev, "mmi_hvdcp_detect_kthread end\n");
|
||||
}while(!kthread_should_stop());
|
||||
|
|
|
|||
Loading…
Reference in a new issue