mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 22:23:14 -04:00
cc2 probabilistically recognized cc1
first_check check was not reported,resulting in the default value of cc1 uppdata aw35616.c in kernel Change-Id: I34704b5c08a38c2819327e9d0fb7b38901097140 Reviewed-on: https://gerrit.mot.com/2727374 SME-Granted: SME Approvals Granted SLTApproved: Slta Waiver Tested-by: Jira Key Reviewed-by: Lei Chen <chenl18@motorola.com> Reviewed-by: Xiangpo Zhao <zhaoxp3@motorola.com> Submit-Approved: Jira Key
This commit is contained in:
parent
3fcd732500
commit
7887e1b007
1 changed files with 3 additions and 0 deletions
|
|
@ -205,6 +205,9 @@ static void aw35616_first_check_typec_work(struct work_struct *work)
|
|||
aw35616_i2c_read_bits(chip, AW35616_REG_STATUS, chip->reg.status.byte, 2);
|
||||
AW_LOG("plug_st = %d snk_det_rp_dbg = %d\n",
|
||||
chip->reg.status.plug_st, chip->reg.status.snk_det_rp_dbg);
|
||||
if (chip->reg.status.plug_ori > 0)
|
||||
chip->tcpc->typec_polarity = chip->reg.status.plug_ori - 1;
|
||||
AW_LOG("plug_ori = %d typec_polarity = %d\n",chip->reg.status.plug_ori,chip->tcpc->typec_polarity);
|
||||
switch (chip->reg.status.plug_st) {
|
||||
case STANDBY:
|
||||
AW_LOG("plug status not connected\n");
|
||||
|
|
|
|||
Loading…
Reference in a new issue