Skip to content

Commit b020761

Browse files
matnymangregkh
authored andcommitted
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>
1 parent 811d221 commit b020761

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/usb/host/xhci.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4755,8 +4755,8 @@ static u16 xhci_calculate_u1_timeout(struct xhci_hcd *xhci,
47554755
*/
47564756
if (timeout_ns <= USB3_LPM_U1_MAX_TIMEOUT)
47574757
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);
47604760
return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U1);
47614761
}
47624762

@@ -4813,8 +4813,8 @@ static u16 xhci_calculate_u2_timeout(struct xhci_hcd *xhci,
48134813
*/
48144814
if (timeout_ns <= USB3_LPM_U2_MAX_TIMEOUT)
48154815
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);
48184818
return xhci_get_timeout_no_hub_lpm(udev, USB3_LPM_U2);
48194819
}
48204820

0 commit comments

Comments
 (0)