]> git.proxmox.com Git - mirror_ubuntu-focal-kernel.git/commit
usb: gadget: enable super speed plus
authortaehyun.cho <taehyun.cho@samsung.com>
Wed, 6 Jan 2021 15:46:25 +0000 (00:46 +0900)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 19 Feb 2021 15:43:53 +0000 (16:43 +0100)
commite37d4ba0f16ec2fc791fa2c35b333d630c9f4e7a
tree51afed5a347c07d42d645ab55b9147993b06b6b3
parent07c90f7d041a3bfc13f5acab6fc067a8f92d21e5
usb: gadget: enable super speed plus

BugLink: https://bugs.launchpad.net/bugs/1913486
commit e2459108b5a0604c4b472cae2b3cb8d3444c77fb upstream.

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 <lorenzo@google.com>
Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: taehyun.cho <taehyun.cho@samsung.com>
Signed-off-by: Lorenzo Colitti <lorenzo@google.com>
Link: https://lore.kernel.org/r/20210106154625.2801030-1-lorenzo@google.com
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: William Breathitt Gray <william.gray@canonical.com>
drivers/usb/gadget/configfs.c