Skip to content

Commit ffe85c2

Browse files
fltogregkh
authored andcommitted
usb: typec: qcom-pmic-typec: fix sink status being overwritten with RP_DEF
This line is overwriting the result of the above switch-case. This fixes the tcpm driver getting stuck in a "Sink TX No Go" loop. Fixes: a4422ff ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver") Cc: stable <[email protected]> Signed-off-by: Jonathan Marek <[email protected]> Acked-by: Bryan O'Donoghue <[email protected]> Reviewed-by: Heikki Krogerus <[email protected]> Reviewed-by: Dmitry Baryshkov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent befab3a commit ffe85c2

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,6 @@ static int qcom_pmic_typec_port_get_cc(struct tcpc_dev *tcpc,
432432
val = TYPEC_CC_RP_DEF;
433433
break;
434434
}
435-
val = TYPEC_CC_RP_DEF;
436435
}
437436

438437
if (misc & CC_ORIENTATION)

0 commit comments

Comments
 (0)