Linux USB
 help / color / mirror / Atom feed
From: Heikki Krogerus <heikki.krogerus@linux.intel.com>
To: Saranya Gopal <saranya.gopal@intel.com>
Cc: linux-usb@vger.kernel.org, gregkh@linuxfoundation.org,
	rajaram.regupathy@intel.com
Subject: Re: [PATCH v3 1/2] usb: typec: pd: Remove usb_suspend_supported sysfs from sink PDO
Date: Tue, 14 Feb 2023 15:30:56 +0200	[thread overview]
Message-ID: <Y+uNEM7cUB6/yCWb@kuha.fi.intel.com> (raw)
In-Reply-To: <20230214114543.205103-1-saranya.gopal@intel.com>

On Tue, Feb 14, 2023 at 05:15:42PM +0530, Saranya Gopal wrote:
> As per USB PD specification, 28th bit of fixed supply sink PDO
> represents "higher capability" attribute and not "usb suspend
> supported" attribute. So, this patch removes the usb_suspend_supported
> attribute from sink PDO.
> 
> Fixes: 662a60102c12 ("usb: typec: Separate USB Power Delivery from USB Type-C")
> Reported-by: Rajaram Regupathy <rajaram.regupathy@intel.com>
> Signed-off-by: Saranya Gopal <saranya.gopal@intel.com>

Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>

> ---
> Changes from v2:
>  - Patch was split into 2
>  - This patch only removes usb_suspend_supported attribute for sink PDOs
> 
>  drivers/usb/typec/pd.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/usb/typec/pd.c b/drivers/usb/typec/pd.c
> index dc72005d68db..b5ab26422c34 100644
> --- a/drivers/usb/typec/pd.c
> +++ b/drivers/usb/typec/pd.c
> @@ -161,7 +161,6 @@ static struct device_type source_fixed_supply_type = {
>  
>  static struct attribute *sink_fixed_supply_attrs[] = {
>  	&dev_attr_dual_role_power.attr,
> -	&dev_attr_usb_suspend_supported.attr,
>  	&dev_attr_unconstrained_power.attr,
>  	&dev_attr_usb_communication_capable.attr,
>  	&dev_attr_dual_role_data.attr,
> -- 
> 2.25.1

-- 
heikki

      parent reply	other threads:[~2023-02-14 13:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-02-14 11:45 [PATCH v3 1/2] usb: typec: pd: Remove usb_suspend_supported sysfs from sink PDO Saranya Gopal
2023-02-14 11:45 ` [PATCH v3 2/2] usb: typec: pd: Add higher capability sysfs for " Saranya Gopal
2023-02-14 15:19   ` Heikki Krogerus
2023-02-14 13:30 ` 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=Y+uNEM7cUB6/yCWb@kuha.fi.intel.com \
    --to=heikki.krogerus@linux.intel.com \
    --cc=gregkh@linuxfoundation.org \
    --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