OSDN Git Service

USB: USB 3.2 Add sysfs entries for a usb device rx_lanes and tx_lanes
authorMathias Nyman <mathias.nyman@linux.intel.com>
Thu, 19 Apr 2018 16:05:54 +0000 (19:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 22 Apr 2018 14:19:26 +0000 (16:19 +0200)
commit460fd21618bf95a16b30500eb4b5452dab04e023
treec38c299fbd9def4d8e27d7d871835d1f0186bd18
parent45455e4d7a6b767497f282bbd0146e838862291f
USB: USB 3.2 Add sysfs entries for a usb device rx_lanes and tx_lanes

Add rx_lanes and tx_lanes lane count sysfs entries for a usb device
struct usb_devuce rx_lanes and tx_lanes variables.

Shows number of lanes used by the usb device

Data rate of a device is the lane speed * lane count, for example
USB 3.2 Gen 2x2 device uses 10Gbps signaling per lane, and has dual-lane
support 10Gbps * 2 = 20Gbps

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/sysfs.c