usb: typec: qcom-pmic-typec: fix sink status being overwritten with RP_DEF
PATCH 1/1 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 a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver")
Signed-off-by Jonathan Marek <[email protected]>
--- drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c | 1 - 1 file changed, 1 deletion(-)
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c +0 -1
@@ -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 )
Signature · 1 line
2.45.1
Quoted 15 lines · Jonathan Marek
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 a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver")Signed-off-by Jonathan Marek <[email protected]>--- drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c | 1 - 1 file changed, 1 deletion(-)drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c +0
-0
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c static int qcom_pmic_typec_port_get_cc(struct tcpc_dev *tcpc, · line 437
Quoted 7 lines
drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c +0
-1@@ -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 )
Acked-by Bryan O'Donoghue <[email protected]>
Quoted 10 lines · Jonathan Marek
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 a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver")Signed-off-by Jonathan Marek <[email protected]>--- drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c | 1 - 1 file changed, 1 deletion(-)
Reviewed-by Dmitry Baryshkov <[email protected]>
Signature · 2 lines
With best wishes Dmitry
Quoted 6 lines · Jonathan Marek
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 a4422ff22142 ("usb: typec: qcom: Add Qualcomm PMIC Type-C driver")Signed-off-by Jonathan Marek <[email protected]>
Reviewed-by Heikki Krogerus <[email protected]>
Quoted 18 lines
--- drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c | 1 - 1 file changed, 1 deletion(-)drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c +0
-1@@ -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 )Signature · 1 line
2.45.1
Signature · 1 line
heikki