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:
longc 2023-09-01 10:52:40 +08:00 • committed by longc156
commit 7887e1b007

View file

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