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:
mahj8 2022-02-17 11:49:26 +08:00 • committed by Haijian Ma
commit 56ee046b8d
2 changed files with 2 additions and 0 deletions

View file

@ -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());

View file

@ -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());