gregkh / usbutils

USB utilities for Linux, including lsusb
http://www.linux-usb.org
356 stars 202 forks source link

lsusb: Improve status display for SuperSpeedPlus hubs #135

Closed robhancock closed 1 year ago

robhancock commented 2 years ago

Add more status information for SuperSpeedPlus hubs by using the EXT_PORT_STATUS request to determine the actual link speed ID and number of lanes that the hub reports it is connected with. This is needed to be able to figure out the actual connection speed for SuperSpeedPlus devices.

This requires parsing the BOS prior to the hub information, since we can only use EXT_PORT_STATUS if the device actually has a SuperSpeedPlus device capability.

Also fix some issues with the SuperSpeedPlus device capability parsing - the speed attribute and speed ID counts were off by one, and the minimum functional speed information is now parsed out.

Signed-off-by: Robert Hancock hancockrwd@gmail.com

robhancock commented 2 years ago

What about USB4 stuff?

Not sure, I don't have any such hardware to test against.

gregkh commented 1 year ago

Looks good, thanks!