diff mbox series

[v3,1/2] usb: typec: pd: Remove usb_suspend_supported sysfs from sink PDO

Message ID 20230214114543.205103-1-saranya.gopal@intel.com (mailing list archive)
State Accepted
Commit e4e7b2dc27c4bb877d850eaff69d41410b2f4237
Headers show
Series [v3,1/2] usb: typec: pd: Remove usb_suspend_supported sysfs from sink PDO | expand

Commit Message

Saranya Gopal Feb. 14, 2023, 11:45 a.m. UTC
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>
---
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(-)

Comments

Heikki Krogerus Feb. 14, 2023, 1:30 p.m. UTC | #1
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
diff mbox series

Patch

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,