Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Bryan O'Donoghue and committed by
Greg Kroah-Hartman
7fbcd99e b067fc28

+2
+2
tools/usb/testusb.c
··· 98 98 USB_SPEED_LOW, USB_SPEED_FULL, /* usb 1.1 */ 99 99 USB_SPEED_HIGH, /* usb 2.0 */ 100 100 USB_SPEED_WIRELESS, /* wireless (usb 2.5) */ 101 + USB_SPEED_SUPER, /* usb 3.0 */ 101 102 }; 102 103 103 104 /*-------------------------------------------------------------------------*/ ··· 111 110 case USB_SPEED_FULL: return "full"; 112 111 case USB_SPEED_HIGH: return "high"; 113 112 case USB_SPEED_WIRELESS: return "wireless"; 113 + case USB_SPEED_SUPER: return "super"; 114 114 default: return "??"; 115 115 } 116 116 }