USB bus ports representation in sysfs
15:37 25 Apr 2020

Following is the output of /sys/bus/usb/devices/ in the embedded system.

# ls /sys/bus/usb/devices/
1-0:1.0    1-1        1-1.1      1-1.1:1.0  1-1.1:1.1  1-1.1:1.2  1-1:1.0    usb1
#

While trying to understand this output, it was mentioned in some place as "bus-port.port".

My understanding is a port will be connected to a bus and device will connect to port, my doubt here is how a port is connected to another port. In which scenario the Kernel will create sysfs entry as "1-1.1".

linux-kernel usb embedded-linux libusb sysfs