From: Saranya Gopal Date: Tue, 14 Feb 2023 11:45:42 +0000 (+0530) Subject: usb: typec: pd: Remove usb_suspend_supported sysfs from sink PDO X-Git-Tag: v6.1.15~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c9d3eb6151b3c6d0c777f1b4586d90db0ae6ebc3;p=platform%2Fkernel%2Flinux-riscv.git usb: typec: pd: Remove usb_suspend_supported sysfs from sink PDO commit e4e7b2dc27c4bb877d850eaff69d41410b2f4237 upstream. 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") Cc: stable Reported-by: Rajaram Regupathy Signed-off-by: Saranya Gopal Reviewed-by: Heikki Krogerus Link: https://lore.kernel.org/r/20230214114543.205103-1-saranya.gopal@intel.com Signed-off-by: Greg Kroah-Hartman --- 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,