public inbox for linux-usb@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1] usbip: Add USB_SPEED_SUPER_PLUS as valid arg
@ 2024-07-05  9:19 Łukasz Bartosik
  2024-07-05  9:40 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 6+ messages in thread
From: Łukasz Bartosik @ 2024-07-05  9:19 UTC (permalink / raw)
  To: Valentina Manea, Shuah Khan, Hongren Zheng, Greg Kroah-Hartman; +Cc: linux-usb

Add USB_SPEED_SUPER_PLUS as valid argument to allow
to attach USB SuperSpeed+ devices.

Signed-off-by: Łukasz Bartosik <ukaszb@chromium.org>
---
 drivers/usb/usbip/vhci_sysfs.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/usb/usbip/vhci_sysfs.c b/drivers/usb/usbip/vhci_sysfs.c
index e2847cd3e6e3..d5865460e82d 100644
--- a/drivers/usb/usbip/vhci_sysfs.c
+++ b/drivers/usb/usbip/vhci_sysfs.c
@@ -283,6 +283,7 @@ static int valid_args(__u32 *pdev_nr, __u32 *rhport,
 	case USB_SPEED_HIGH:
 	case USB_SPEED_WIRELESS:
 	case USB_SPEED_SUPER:
+	case USB_SPEED_SUPER_PLUS:
 		break;
 	default:
 		pr_err("Failed attach request for unsupported USB speed: %s\n",
@@ -349,7 +350,7 @@ static ssize_t attach_store(struct device *dev, struct device_attribute *attr,
 	vhci_hcd = hcd_to_vhci_hcd(hcd);
 	vhci = vhci_hcd->vhci;
 
-	if (speed == USB_SPEED_SUPER)
+	if (speed >= USB_SPEED_SUPER)
 		vdev = &vhci->vhci_hcd_ss->vdev[rhport];
 	else
 		vdev = &vhci->vhci_hcd_hs->vdev[rhport];
-- 
2.45.2.803.g4e1b14247a-goog


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2024-07-11 17:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-05  9:19 [PATCH v1] usbip: Add USB_SPEED_SUPER_PLUS as valid arg Łukasz Bartosik
2024-07-05  9:40 ` Greg Kroah-Hartman
2024-07-05 10:43   ` Łukasz Bartosik
2024-07-09 19:27     ` Shuah Khan
2024-07-10 10:50       ` Łukasz Bartosik
2024-07-11 17:07         ` Shuah Khan

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox