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 <stable@kernel.org> Signed-off-by: Jonathan Marek <jonathan@marek.ca> Acked-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Reviewed-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org> Link: https://lore.kernel.org/r/20241005144146.2345-1-jonathan@marek.ca Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent befab3a commit ffe85c2

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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)