Skip to contentSkip to conversation

USB: show USB3 Gen XxY version during device enumeration

PATCH New Mathias Nyman 1 participant 1 message Mar 13, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 2/2 USB: show USB3 Gen XxY version during device enumeration

USB 3.2 specification adds a Gen XxY notion for USB3 devices where X is the signaling rate on the wire. Gen 1xY is 5Gbps Superspeed and Gen 2xY is 10Gbps SuperSpeedPlus. Y is the lane count. USB 3.2 supports dual lane Gen Xx2

Gen 1x1 5Gbps single lane
Gen 2x1 10Gbps single lane
Gen 1x2 10Gbps dual lane (USB 3.2)
Gen 2x2 20Gbps dual lane (USB 3.2)

---
 drivers/usb/core/hub.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
drivers/usb/core/hub.c +3 -1
index 853516d..c203876 100644
@@ -4592,9 +4592,11 @@ hub_port_init(struct usb_hub *hub, struct usb_device *udev, int port1,
 			if (udev->speed >= USB_SPEED_SUPER) {
 				devnum = udev->devnum;
 				dev_info(&udev->dev,
-						"%s SuperSpeed%s USB device number %d using %s\n",
+						"%s SuperSpeed%s Gen %dx%d USB device number %d using %s\n",
 						(udev->config) ? "reset" : "new",
 					 (udev->speed == USB_SPEED_SUPER_PLUS) ? "Plus" : "",
+					 (udev->speed == USB_SPEED_SUPER_PLUS) ? 2 : 1,
+					 udev->lanes,
 					 devnum, driver_name);
 			}