mirror of
https://github.com/torvalds/linux.git
synced 2026-05-21 21:37:25 +02:00
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: a4422ff221 ("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>
This commit is contained in:
parent
befab3a278
commit
ffe85c24d7
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user