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

tools: usb: testusb: Add super-plus speed reporting

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>

authored by

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

+2
+2
tools/usb/testusb.c
··· 99 99 USB_SPEED_HIGH, /* usb 2.0 */ 100 100 USB_SPEED_WIRELESS, /* wireless (usb 2.5) */ 101 101 USB_SPEED_SUPER, /* usb 3.0 */ 102 + USB_SPEED_SUPER_PLUS, /* usb 3.1 */ 102 103 }; 103 104 104 105 /*-------------------------------------------------------------------------*/ ··· 113 112 case USB_SPEED_HIGH: return "high"; 114 113 case USB_SPEED_WIRELESS: return "wireless"; 115 114 case USB_SPEED_SUPER: return "super"; 115 + case USB_SPEED_SUPER_PLUS: return "super-plus"; 116 116 default: return "??"; 117 117 } 118 118 }