fogona Usb connection to PC,plug in the phone to charge,the phone restarts

The second supply cc is not compatible with the dual pull-up Huawei line,resulting in rd_PD_Manager is unable to obatin the correct RP level

Change-Id: Ib0c0ebc7ccc89b620d97d41087ec66454adf6a7c
Reviewed-on: https://gerrit.mot.com/2769875
SME-Granted: SME Approvals Granted
SLTApproved: Slta Waiver
Tested-by: Jira Key
Reviewed-by: Zonghua Liu <a17671@motorola.com>
Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
149 2023-10-17 15:17:56 +08:00 • committed by longc149
commit c6cbfa0a08

View file

@ -242,6 +242,11 @@ static void aw35616_first_check_typec_work(struct work_struct *work)
case DUG_ACC:
if (chip->reg.status.snk_det_rp_dbg) {
AW_LOG("plug int Rp-Rp\n");
AW_LOG("snk_cur_md:%d\n",chip->reg.status.snk_cur_md);
chip->tcpc->typec_usb_sink_curr = chip->reg.status.snk_cur_md;
chip->tcpc->typec_remote_rp_level = aw35616_remote_rp_level(chip->tcpc);
if (chip->tcpc->typec_attach_new != TYPEC_ATTACHED_SNK) {
chip->tcpc->typec_attach_new = TYPEC_ATTACHED_SNK;
tcpci_notify_typec_state(chip->tcpc);