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

usb: typec: ucsi: Add support for SET_PDOS command

Add support for UCSI SET_PDOS command as per UCSI specification
v2.1 and above to debugfs.

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Signed-off-by: Pooja Katiyar <pooja.katiyar@intel.com>
Link: https://patch.msgid.link/b4ccc1e75746b04a8b48c8998b42b019afb934f1.1761773881.git.pooja.katiyar@intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Pooja Katiyar and committed by
Greg Kroah-Hartman
1b474ee0 775fae52

+2
+1
drivers/usb/typec/ucsi/debugfs.c
··· 37 37 case UCSI_SET_USB: 38 38 case UCSI_SET_POWER_LEVEL: 39 39 case UCSI_READ_POWER_LEVEL: 40 + case UCSI_SET_PDOS: 40 41 ucsi->message_in_size = 0; 41 42 ret = ucsi_send_command(ucsi, val); 42 43 break;
+1
drivers/usb/typec/ucsi/ucsi.h
··· 137 137 #define UCSI_GET_PD_MESSAGE 0x15 138 138 #define UCSI_GET_CAM_CS 0x18 139 139 #define UCSI_SET_SINK_PATH 0x1c 140 + #define UCSI_SET_PDOS 0x1d 140 141 #define UCSI_READ_POWER_LEVEL 0x1e 141 142 #define UCSI_SET_USB 0x21 142 143 #define UCSI_GET_LPM_PPM_INFO 0x22