Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

xhci: show correct U1 and U2 timeout values in debug messages

U2 value is encoded in 256 microsecond intervals, show in microseconds.
U1 value is in microseconds. debug message incorrectly showed "ms"

Unwrap debug messages while we anyway modify them.

Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com>
Link: https://lore.kernel.org/r/20250306144954.3507700-2-mathias.nyman@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Mathias Nyman and committed by
Greg Kroah-Hartman
b020761e 811d2214

+4 -4
+4 -4
drivers/usb/host/xhci.c
··· 4755 4755 */ 4756 4756 if (timeout_ns <= USB3_LPM_U1_MAX_TIMEOUT) 4757 4757 return timeout_ns; 4758 - dev_dbg(&udev->dev, "Hub-initiated U1 disabled " 4759 - "due to long timeout %llu ms\n", timeout_ns); 4758 + dev_dbg(&udev->dev, "Hub-initiated U1 disabled due to long timeout %lluus\n", 4759 + timeout_ns); 4760 4760 return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U1); 4761 4761 } 4762 4762 ··· 4813 4813 */ 4814 4814 if (timeout_ns <= USB3_LPM_U2_MAX_TIMEOUT) 4815 4815 return timeout_ns; 4816 - dev_dbg(&udev->dev, "Hub-initiated U2 disabled " 4817 - "due to long timeout %llu ms\n", timeout_ns); 4816 + dev_dbg(&udev->dev, "Hub-initiated U2 disabled due to long timeout %lluus\n", 4817 + timeout_ns * 256); 4818 4818 return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U2); 4819 4819 } 4820 4820