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: I939020e45f1ef5160646bfec2d3bb3b4d49ac019
Reviewed-on: https://gerrit.mot.com/2775856
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>
Reviewed-by: Lei Chen <chenl18@motorola.com>
Submit-Approved: Jira Key
This commit is contained in:
149 2023-10-25 11:11:16 +08:00 • committed by longc149
commit ad0692ef7e

View file

@ -355,6 +355,11 @@ static irqreturn_t aw35616_irq_work_handler(int irq, void *data)
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);