From: Greg KH <gregkh@linuxfoundation.org>
To: Saranya Gopal <saranya.gopal@intel.com>
Cc: linux-usb@vger.kernel.org,
Heikki Krogerus <heikki.krogerus@linux.intel.com>,
Rajaram Regupathy <rajaram.regupathy@intel.com>
Subject: Re: [PATCH] usb: typec: pd: Add higher_capability sysfs for sink PDO
Date: Sun, 12 Feb 2023 16:34:39 +0100 [thread overview]
Message-ID: <Y+kHDxDaHnXMPdfL@kroah.com> (raw)
In-Reply-To: <20230212144838.128595-1-saranya.gopal@intel.com>
On Sun, Feb 12, 2023 at 08:18:38PM +0530, Saranya Gopal wrote:
> As per USB PD specification, 28th bit of sink fixed power supply
> PDO represents higher capability. If this bit is set, it indicates
> that the sink needs more than vsafe5V to provide full functionality.
> This patch replaces usb_suspend_supported sysfs with higher_capability
> sysfs for sink PDO.
>
> Fixes: 662a60102c12 ("usb: typec: Separate USB Power Delivery from USB Type-C")
> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Where was this reviewed? I don't see that on the list, am I missing it?
> Reported-by: Rajaram Regupathy <rajaram.regupathy@intel.com>
> Signed-off-by: Saranya Gopal <saranya.gopal@intel.com>
> ---
> .../ABI/testing/sysfs-class-usb_power_delivery | 10 +++++++++-
> drivers/usb/typec/pd.c | 9 ++++++++-
> 2 files changed, 17 insertions(+), 2 deletions(-)
>
> diff --git a/Documentation/ABI/testing/sysfs-class-usb_power_delivery b/Documentation/ABI/testing/sysfs-class-usb_power_delivery
> index ce2b1b563cb3..59757118b6a3 100644
> --- a/Documentation/ABI/testing/sysfs-class-usb_power_delivery
> +++ b/Documentation/ABI/testing/sysfs-class-usb_power_delivery
> @@ -69,7 +69,7 @@ Description:
> This file contains boolean value that tells does the device
> support both source and sink power roles.
>
> -What: /sys/class/usb_power_delivery/.../<capability>/1:fixed_supply/usb_suspend_supported
> +What: /sys/class/usb_power_delivery/.../source-capabilities/1:fixed_supply/usb_suspend_supported
> Date: May 2022
> Contact: Heikki Krogerus <heikki.krogerus@linux.intel.com>
> Description:
> @@ -78,6 +78,14 @@ Description:
> will follow the USB 2.0 and USB 3.2 rules for suspend and
> resume.
>
> +What: /sys/class/usb_power_delivery/.../sink-capabilities/1:fixed_supply/higher_capability
> +Date: February 2023
> +Contact: Saranya Gopal <saranya.gopal@linux.intel.com>
> +Description:
> + This file shows the value of the Higher capability bit in vsafe5V Fixed Supply Object.
> + If the bit is set, then the sink needs more than vsafe5V(eg. 12 V) to provide
> + full functionality.
You don't explain what this file will show. 0/1? Y/N? J/N?
Also, properly wrap your lines at 80 columns for documentation please.
And adding a new sysfs entry does not "Fix" anything, why is this tagged
as such?
thanks,
greg k-h
next prev parent reply other threads:[~2023-02-12 15:34 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-12 14:48 [PATCH] usb: typec: pd: Add higher_capability sysfs for sink PDO Saranya Gopal
2023-02-12 15:34 ` Greg KH [this message]
2023-02-12 16:13 ` Gopal, Saranya
2023-02-13 13:09 ` Heikki Krogerus
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=Y+kHDxDaHnXMPdfL@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=heikki.krogerus@linux.intel.com \
--cc=linux-usb@vger.kernel.org \
--cc=rajaram.regupathy@intel.com \
--cc=saranya.gopal@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