* [PATCH] usb: gadget: enable super speed plus
@ 2021-01-06 15:46 Lorenzo Colitti
2021-01-07 9:19 ` Felipe Balbi
0 siblings, 1 reply; 2+ messages in thread
From: Lorenzo Colitti @ 2021-01-06 15:46 UTC (permalink / raw)
To: linux-usb, gregkh; +Cc: taehyun.cho, Lorenzo Colitti
From: "taehyun.cho" <taehyun.cho@samsung.com>
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
Signed-off-by: taehyun.cho <taehyun.cho@samsung.com>
Tested-by: Lorenzo Colitti <lorenzo@google.com>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
---
drivers/usb/gadget/configfs.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/usb/gadget/configfs.c b/drivers/usb/gadget/configfs.c
index 56051bb97349..976d3e6c3554 100644
--- a/drivers/usb/gadget/configfs.c
+++ b/drivers/usb/gadget/configfs.c
@@ -1536,7 +1536,7 @@ static const struct usb_gadget_driver configfs_driver_template = {
.suspend = configfs_composite_suspend,
.resume = configfs_composite_resume,
- .max_speed = USB_SPEED_SUPER,
+ .max_speed = USB_SPEED_SUPER_PLUS,
.driver = {
.owner = THIS_MODULE,
.name = "configfs-gadget",
@@ -1576,7 +1576,7 @@ static struct config_group *gadgets_make(
gi->composite.unbind = configfs_do_nothing;
gi->composite.suspend = NULL;
gi->composite.resume = NULL;
- gi->composite.max_speed = USB_SPEED_SUPER;
+ gi->composite.max_speed = USB_SPEED_SUPER_PLUS;
spin_lock_init(&gi->spinlock);
mutex_init(&gi->lock);
--
2.29.2.729.g45daf8777d-goog
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] usb: gadget: enable super speed plus
2021-01-06 15:46 [PATCH] usb: gadget: enable super speed plus Lorenzo Colitti
@ 2021-01-07 9:19 ` Felipe Balbi
0 siblings, 0 replies; 2+ messages in thread
From: Felipe Balbi @ 2021-01-07 9:19 UTC (permalink / raw)
To: Lorenzo Colitti, linux-usb, gregkh; +Cc: taehyun.cho, Lorenzo Colitti
[-- Attachment #1: Type: text/plain, Size: 806 bytes --]
Hi,
Lorenzo Colitti <lorenzo@google.com> writes:
> From: "taehyun.cho" <taehyun.cho@samsung.com>
>
> 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
>
> Signed-off-by: taehyun.cho <taehyun.cho@samsung.com>
> Tested-by: Lorenzo Colitti <lorenzo@google.com>
> Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
--
balbi
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 857 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-07 9:20 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-01-06 15:46 [PATCH] usb: gadget: enable super speed plus Lorenzo Colitti
2021-01-07 9:19 ` Felipe Balbi
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.