mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-12 15:49:17 -04:00
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:
parent
f3e51aeccc
commit
ad0692ef7e
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue