Skip to contentSkip to conversation

usb: typec: qcom-pmic-typec: fix sink status being overwritten with RP_DEF

PATCH In review Jonathan Marek 4 participants 4 messages Oct 5, 2024 – Oct 9, 2024

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

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")
---
 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
index a747baa297849..c37dede62e12c 100644
@@ -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
maintainer Acked-by on v1 1/1
#1 lore raw
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")
---
  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
index a747baa297849..c37dede62e12c 100644

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)
Reviewed-by on v1 1/1
#2 lore raw
In reply to Jonathan Marek
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")
---
 drivers/usb/typec/tcpm/qcom/qcom_pmic_typec_port.c | 1 -
 1 file changed, 1 deletion(-)
Signature · 2 lines
With best wishes
Dmitry
maintainer Reviewed-by on v1 1/1
#3 lore raw
In reply to Jonathan Marek
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")
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
index a747baa297849..c37dede62e12c 100644
@@ -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