]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
usb: typec: ucsi: Add support for SET_PDOS command
authorPooja Katiyar <pooja.katiyar@intel.com>
Thu, 30 Oct 2025 14:48:58 +0000 (07:48 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Nov 2025 14:13:21 +0000 (15:13 +0100)
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>
drivers/usb/typec/ucsi/debugfs.c
drivers/usb/typec/ucsi/ucsi.h

index 90d11b79d2c074fbd228907a30259625ad133bba..174f4d53b77718f09d1f246d7d5c723f3ec153e2 100644 (file)
@@ -37,6 +37,7 @@ static int ucsi_cmd(void *data, u64 val)
        case UCSI_SET_USB:
        case UCSI_SET_POWER_LEVEL:
        case UCSI_READ_POWER_LEVEL:
+       case UCSI_SET_PDOS:
                ucsi->message_in_size = 0;
                ret = ucsi_send_command(ucsi, val);
                break;
index d01b796a8d23a13867b8186ca4e4885bdee86845..f946b728c373d0f002469623907499ef81fae227 100644 (file)
@@ -137,6 +137,7 @@ void ucsi_connector_change(struct ucsi *ucsi, u8 num);
 #define UCSI_GET_PD_MESSAGE                    0x15
 #define UCSI_GET_CAM_CS                        0x18
 #define UCSI_SET_SINK_PATH                     0x1c
+#define UCSI_SET_PDOS                          0x1d
 #define UCSI_READ_POWER_LEVEL                  0x1e
 #define UCSI_SET_USB                           0x21
 #define UCSI_GET_LPM_PPM_INFO                  0x22