How to show Linux mass storage gadget connection speed?

121 Views Asked by At

I have a serial console shell connected to the Device and loaded the mass storage gadget driver and have a USB connection from the Linux Device to a PC host and I want to print the connection speed from the Device shell.

Is there a way to show from a serial console shell prompt the connection speed on the device side of a mass storage gadget connection other than the dmesg from the driver?

1

There are 1 best solutions below

0
Bill Morgan On

Thanks to 0andriy, I found that the current speed is available in sysfs. On my system it was here:

root@dra7xx-evm:~# cat /sys/devices/platform/44000000.ocp/48880000.omap_dwc3_1/48890000.usb/udc/48890000.usb/current_speed
super-speed