Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Pooja Katiyar <pooja.katiyar@intel.com>
Link: https://lore.kernel.org/r/20241007205947.1591402-1-pooja.katiyar@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Pooja Katiyar and committed by
Greg Kroah-Hartman
ed830af1 fa48d7e8

+2
+1
drivers/usb/typec/ucsi/debugfs.c
··· 32 32 case UCSI_SET_UOR: 33 33 case UCSI_SET_PDR: 34 34 case UCSI_CONNECTOR_RESET: 35 + case UCSI_SET_SINK_PATH: 35 36 ret = ucsi_send_command(ucsi, val, NULL, 0); 36 37 break; 37 38 case UCSI_GET_CAPABILITY:
+1
drivers/usb/typec/ucsi/ucsi.h
··· 115 115 #define UCSI_GET_CONNECTOR_STATUS 0x12 116 116 #define UCSI_GET_ERROR_STATUS 0x13 117 117 #define UCSI_GET_PD_MESSAGE 0x15 118 + #define UCSI_SET_SINK_PATH 0x1c 118 119 119 120 #define UCSI_CONNECTOR_NUMBER(_num_) ((u64)(_num_) << 16) 120 121 #define UCSI_COMMAND(_cmd_) ((_cmd_) & 0xff)