xhci: debugfs: add usb ports to xhci debugfs
authorMathias Nyman <mathias.nyman@linux.intel.com>
Mon, 21 May 2018 13:40:05 +0000 (16:40 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 24 May 2018 16:03:09 +0000 (18:03 +0200)
commit65475023928bce90a98aa4e44047fd17afead050
tree98503e7434b6dc3e664e087ca09b29d73a71f101
parent07f7619053874ba60d620367b965b8a0ae38a696
xhci: debugfs: add usb ports to xhci debugfs

Add ports/portxx/portsc for each xHC hardware usb port to debugfs.
Showing the content of the port status and control register for
each port (PORTSC)

Portxx is numbered starting from 1 for historical reasons to better
match port numbering shown by lsusb and other places.

Ports in debugfs are in the order XHC controller has them,
In most cases USB2 ports come first, followed by USB3 ports.
i.e. USB2 ports are port01-portxx, and USB3 portxx-portmax.

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