Skip to content
This repository has been archived by the owner on Oct 31, 2024. It is now read-only.

Commit

Permalink
usb: typec: qcom-pmic-typec: fix sink status being overwritten with R…
Browse files Browse the repository at this point in the history
…P_DEF

commit ffe85c2 upstream.

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]>
  • Loading branch information
flto authored and gregkh committed Oct 22, 2024
1 parent 43b9377 commit 40ca003
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c
Original file line number Diff line number Diff line change
Expand Up @@ -432,7 +432,6 @@ static int qcom_pmic_typec_port_get_cc(struct tcpc_dev *tcpc,
val = TYPEC_CC_RP_DEF;
break;
}
val = TYPEC_CC_RP_DEF;
}

if (misc & CC_ORIENTATION)
Expand Down

0 comments on commit 40ca003

Please sign in to comment.