Skip to contentSkip to conversation

usb: typec: ucsi: UCSI2.0 Set Sink Path command support

PATCH New Pooja Katiyar 1 participant 1 message Oct 7, 2024

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

PATCH 1/1 usb: typec: ucsi: UCSI2.0 Set Sink Path command support

Add support for UCSI 2.0 command Set Sink Path to enable/ disable sink path on type-c ports

---
 drivers/usb/typec/ucsi/debugfs.c | 1 +
 drivers/usb/typec/ucsi/ucsi.h    | 1 +
 2 files changed, 2 insertions(+)
drivers/usb/typec/ucsi/debugfs.c +1 -0
index f67733cecfdf..83ff23086d79 100644
@@ -32,6 +32,7 @@ static int ucsi_cmd(void *data, u64 val)
 	case UCSI_SET_UOR:
 	case UCSI_SET_PDR:
 	case UCSI_CONNECTOR_RESET:
+	case UCSI_SET_SINK_PATH:
 		ret = ucsi_send_command(ucsi, val, NULL, 0);
 		break;
 	case UCSI_GET_CAPABILITY:
drivers/usb/typec/ucsi/ucsi.h +1 -0
index 4a017eb6a65b..13fc8f2b4e78 100644
@@ -115,6 +115,7 @@ void ucsi_connector_change(struct ucsi *ucsi, u8 num);
 #define UCSI_GET_CONNECTOR_STATUS	0x12
 #define UCSI_GET_ERROR_STATUS		0x13
 #define UCSI_GET_PD_MESSAGE		0x15
+#define UCSI_SET_SINK_PATH		0x1c
 
 #define UCSI_CONNECTOR_NUMBER(_num_)		((u64)(_num_) << 16)
 #define UCSI_COMMAND(_cmd_)			((_cmd_) & 0xff)
Signature · 1 line
2.34.1