Skip to content

Commit 1b474ee

Browse files
pakatiyargregkh
authored andcommitted
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>
1 parent 775fae5 commit 1b474ee

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

drivers/usb/typec/ucsi/debugfs.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ static int ucsi_cmd(void *data, u64 val)
3737
case UCSI_SET_USB:
3838
case UCSI_SET_POWER_LEVEL:
3939
case UCSI_READ_POWER_LEVEL:
40+
case UCSI_SET_PDOS:
4041
ucsi->message_in_size = 0;
4142
ret = ucsi_send_command(ucsi, val);
4243
break;

drivers/usb/typec/ucsi/ucsi.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ void ucsi_connector_change(struct ucsi *ucsi, u8 num);
137137
#define UCSI_GET_PD_MESSAGE 0x15
138138
#define UCSI_GET_CAM_CS 0x18
139139
#define UCSI_SET_SINK_PATH 0x1c
140+
#define UCSI_SET_PDOS 0x1d
140141
#define UCSI_READ_POWER_LEVEL 0x1e
141142
#define UCSI_SET_USB 0x21
142143
#define UCSI_GET_LPM_PPM_INFO 0x22

0 commit comments

Comments
 (0)