summaryrefslogtreecommitdiffstats
path: root/tools/usb
diff options
context:
space:
mode:
authorBryan O'Donoghue <bryan.odonoghue@linaro.org>2022-07-08 13:58:58 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-07-08 14:54:49 +0200
commit7fbcd99ebc0b9df7f4a9bbcfbf3e71c6bfddf9cc (patch)
treecf22d14f6b6832d02e38cc92cd9ecc74b403ceca /tools/usb
parenttools: usb: testusb: Add wireless speed reporting (diff)
downloadlinux-7fbcd99ebc0b9df7f4a9bbcfbf3e71c6bfddf9cc.tar.xz
linux-7fbcd99ebc0b9df7f4a9bbcfbf3e71c6bfddf9cc.zip
tools: usb: testusb: Add super speed reporting
Add the ability to detect and print the USB speed as "super" if/when the kernel reports that speed. Signed-off-by: Bryan O'Donoghue <bryan.odonoghue@linaro.org> Link: https://lore.kernel.org/r/20220708115859.2095714-3-bryan.odonoghue@linaro.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/usb')
-rw-r--r--tools/usb/testusb.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/usb/testusb.c b/tools/usb/testusb.c
index 6f428f925384..d996a3819322 100644
--- a/tools/usb/testusb.c
+++ b/tools/usb/testusb.c
@@ -98,6 +98,7 @@ enum usb_device_speed {
USB_SPEED_LOW, USB_SPEED_FULL, /* usb 1.1 */
USB_SPEED_HIGH, /* usb 2.0 */
USB_SPEED_WIRELESS, /* wireless (usb 2.5) */
+ USB_SPEED_SUPER, /* usb 3.0 */
};
/*-------------------------------------------------------------------------*/
@@ -110,6 +111,7 @@ static char *speed (enum usb_device_speed s)
case USB_SPEED_FULL: return "full";
case USB_SPEED_HIGH: return "high";
case USB_SPEED_WIRELESS: return "wireless";
+ case USB_SPEED_SUPER: return "super";
default: return "??";
}
}