diff --git a/patches.kernel.org/6.2.2-015-usb-typec-pd-Remove-usb_suspend_supported-sysfs.patch b/patches.kernel.org/6.2.2-015-usb-typec-pd-Remove-usb_suspend_supported-sysfs.patch new file mode 100644 index 0000000..c6cb8fb --- /dev/null +++ b/patches.kernel.org/6.2.2-015-usb-typec-pd-Remove-usb_suspend_supported-sysfs.patch @@ -0,0 +1,42 @@ +From: Saranya Gopal +Date: Tue, 14 Feb 2023 17:15:42 +0530 +Subject: [PATCH] usb: typec: pd: Remove usb_suspend_supported sysfs from sink + PDO +References: bsc#1012628 +Patch-mainline: 6.2.2 +Git-commit: e4e7b2dc27c4bb877d850eaff69d41410b2f4237 + +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 +Signed-off-by: Jiri Slaby +--- + 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 dc72005d..b5ab2642 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.35.3 + diff --git a/series.conf b/series.conf index 17c4a3e..9ea3ae3 100644 --- a/series.conf +++ b/series.conf @@ -54,6 +54,7 @@ patches.kernel.org/6.2.2-012-USB-serial-option-add-support-for-VW-Skoda-Cars.patch patches.kernel.org/6.2.2-013-usb-gadget-u_serial-Add-null-pointer-check-in-g.patch patches.kernel.org/6.2.2-014-arm64-dts-uniphier-Fix-property-name-in-PXs3-US.patch + patches.kernel.org/6.2.2-015-usb-typec-pd-Remove-usb_suspend_supported-sysfs.patch ######################################################## # Build fixes that apply to the vanilla kernel too.