From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Pooja Katiyar <pooja.katiyar@intel.com>
Cc: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org,
dmitry.baryshkov@oss.qualcomm.com
Subject: Re: [PATCH v4 4/4] usb: typec: ucsi: Add support for SET_PDOS command
Date: Mon, 15 Sep 2025 15:21:44 +0300 [thread overview]
Message-ID: <aMgE2Nf6gQj5f6bS@kuha.fi.intel.com> (raw)
In-Reply-To: <0b93319351439e9b4adcd9d3ae28c7bc252b7f03.1757374784.git.pooja.katiyar@intel.com>
On Tue, Sep 09, 2025 at 06:52:07PM -0700, Pooja Katiyar wrote:
> Add support for UCSI SET_PDOS command as per UCSI specification
> v2.1 and above to debugfs.
>
> Signed-off-by: Pooja Katiyar <pooja.katiyar@intel.com>
Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> ---
> Changelog v4:
> - Fixed build errors reported by kernel test robot.
> - Added changelogs.
>
> Changelog v3:
> - No changes.
>
> Changelog v2:
> - Send message_out data as part of ucsi_send_command.
>
> drivers/usb/typec/ucsi/debugfs.c | 1 +
> drivers/usb/typec/ucsi/ucsi.h | 1 +
> 2 files changed, 2 insertions(+)
>
> diff --git a/drivers/usb/typec/ucsi/debugfs.c b/drivers/usb/typec/ucsi/debugfs.c
> index 0693acf04c37..63a5fe791a82 100644
> --- a/drivers/usb/typec/ucsi/debugfs.c
> +++ b/drivers/usb/typec/ucsi/debugfs.c
> @@ -36,6 +36,7 @@ static int ucsi_cmd(void *data, u64 val)
> case UCSI_SET_NEW_CAM:
> case UCSI_SET_USB:
> case UCSI_READ_POWER_LEVEL:
> + case UCSI_SET_PDOS:
> ucsi->message_in_size = 0;
> ret = ucsi_send_command(ucsi, val);
> break;
> diff --git a/drivers/usb/typec/ucsi/ucsi.h b/drivers/usb/typec/ucsi/ucsi.h
> index e6ca70f7fa1f..bdbaaeb1d925 100644
> --- a/drivers/usb/typec/ucsi/ucsi.h
> +++ b/drivers/usb/typec/ucsi/ucsi.h
> @@ -136,6 +136,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
> --
> 2.43.0
--
heikki
prev parent reply other threads:[~2025-09-15 12:21 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-09-10 1:52 [PATCH v4 0/4] usb: typec: ucsi: Add support for SET_PDOS command Pooja Katiyar
2025-09-10 1:52 ` [PATCH v4 1/4] usb: typec: ucsi: Update UCSI structure to have message in and message out fields Pooja Katiyar
2025-09-15 12:16 ` Heikki Krogerus
2025-09-10 1:52 ` [PATCH v4 2/4] usb: typec: ucsi: Add support for message out data structure Pooja Katiyar
2025-09-15 12:18 ` Heikki Krogerus
2025-09-10 1:52 ` [PATCH v4 3/4] usb: typec: ucsi: Enable debugfs for message_out " Pooja Katiyar
2025-09-15 12:20 ` Heikki Krogerus
2025-09-10 1:52 ` [PATCH v4 4/4] usb: typec: ucsi: Add support for SET_PDOS command Pooja Katiyar
2025-09-15 12:21 ` Heikki Krogerus [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aMgE2Nf6gQj5f6bS@kuha.fi.intel.com \
--to=heikki.krogerus@linux.intel.com \
--cc=dmitry.baryshkov@oss.qualcomm.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-usb@vger.kernel.org \
--cc=pooja.katiyar@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox