xhci: Make debug message consistent with bus and port number
authorKai-Heng Feng <kai.heng.feng@canonical.com>
Thu, 23 Jul 2020 14:45:04 +0000 (17:45 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 23 Jul 2020 15:05:26 +0000 (17:05 +0200)
commit8aaf19b8ec78748b80c73319d48413dd26fecb3d
treedc5890470bd49c2067264f8e379aec117a6eed5a
parentc17536d0abde2fd24afca542e3bb73b45a299633
xhci: Make debug message consistent with bus and port number

Current xhci debug message doesn't always output bus number, so it's
hard to figure out it's from USB2 or USB3 root hub.

In addition to that, some port numbers are offset to 0 and others are
offset to 1. Use the latter to match the USB core.

So use "bus number - port index + 1" to make debug message consistent.

Signed-off-by: Kai-Heng Feng <kai.heng.feng@canonical.com>
Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20200723144530.9992-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c