Skip to content

Commit e245910

Browse files
cth2996gregkh
authored andcommitted
usb: gadget: enable super speed plus
Enable Super speed plus in configfs to support USB3.1 Gen2. This ensures that when a USB gadget is plugged in, it is enumerated as Gen 2 and connected at 10 Gbps if the host and cable are capable of it. Many in-tree gadget functions (fs, midi, acm, ncm, mass_storage, etc.) already have SuperSpeed Plus support. Tested: plugged gadget into Linux host and saw: [284907.385986] usb 8-2: new SuperSpeedPlus Gen 2 USB device number 3 using xhci_hcd Tested-by: Lorenzo Colitti <[email protected]> Acked-by: Felipe Balbi <[email protected]> Signed-off-by: taehyun.cho <[email protected]> Signed-off-by: Lorenzo Colitti <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: stable <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e89eed0 commit e245910

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

drivers/usb/gadget/configfs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1543,7 +1543,7 @@ static const struct usb_gadget_driver configfs_driver_template = {
15431543
.suspend = configfs_composite_suspend,
15441544
.resume = configfs_composite_resume,
15451545

1546-
.max_speed = USB_SPEED_SUPER,
1546+
.max_speed = USB_SPEED_SUPER_PLUS,
15471547
.driver = {
15481548
.owner = THIS_MODULE,
15491549
.name = "configfs-gadget",
@@ -1583,7 +1583,7 @@ static struct config_group *gadgets_make(
15831583
gi->composite.unbind = configfs_do_nothing;
15841584
gi->composite.suspend = NULL;
15851585
gi->composite.resume = NULL;
1586-
gi->composite.max_speed = USB_SPEED_SUPER;
1586+
gi->composite.max_speed = USB_SPEED_SUPER_PLUS;
15871587

15881588
spin_lock_init(&gi->spinlock);
15891589
mutex_init(&gi->lock);

0 commit comments

Comments
 (0)