projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7fbcd99
)
tools: usb: testusb: Add super-plus speed reporting
author
Bryan O'Donoghue
<bryan.odonoghue@linaro.org>
Fri, 8 Jul 2022 11:58:59 +0000
(12:58 +0100)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Fri, 8 Jul 2022 12:54:49 +0000
(14:54 +0200)
Add the ability to detect and print the USB speed as "super-plus" 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-4-bryan.odonoghue@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/usb/testusb.c
patch
|
blob
|
history
diff --git
a/tools/usb/testusb.c
b/tools/usb/testusb.c
index d996a3819322eeb196eee6415a6e9a217440acfa..cbaa1b9fdeacb9f9adff4f8df7214ffc354c5aa3 100644
(file)
--- a/
tools/usb/testusb.c
+++ b/
tools/usb/testusb.c
@@
-99,6
+99,7
@@
enum usb_device_speed {
USB_SPEED_HIGH, /* usb 2.0 */
USB_SPEED_WIRELESS, /* wireless (usb 2.5) */
USB_SPEED_SUPER, /* usb 3.0 */
+ USB_SPEED_SUPER_PLUS, /* usb 3.1 */
};
/*-------------------------------------------------------------------------*/
@@
-112,6
+113,7
@@
static char *speed (enum usb_device_speed s)
case USB_SPEED_HIGH: return "high";
case USB_SPEED_WIRELESS: return "wireless";
case USB_SPEED_SUPER: return "super";
+ case USB_SPEED_SUPER_PLUS: return "super-plus";
default: return "??";
}
}