From: Niklas Neronin Date: Wed, 17 Sep 2025 21:07:25 +0000 (+0300) Subject: usb: xhci: align PORTSC trace with one-based port numbering X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=a4e143636d5def935dd461539b67b61287a8dfef;p=users%2Fhch%2Fmisc.git usb: xhci: align PORTSC trace with one-based port numbering In the xHCI driver, port numbers are typically described using a one-based index. However, tracing currently uses a zero-based index. To ensure consistency between tracing and dynamic debugging, update the trace port number to use a one-based index. Signed-off-by: Niklas Neronin Signed-off-by: Mathias Nyman Link: https://lore.kernel.org/r/20250917210726.97100-7-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/xhci-trace.h b/drivers/usb/host/xhci-trace.h index f303ce600ff5..9abc904f1749 100644 --- a/drivers/usb/host/xhci-trace.h +++ b/drivers/usb/host/xhci-trace.h @@ -550,7 +550,7 @@ DECLARE_EVENT_CLASS(xhci_log_portsc, ), TP_fast_assign( __entry->busnum = port->rhub->hcd->self.busnum; - __entry->portnum = port->hcd_portnum; + __entry->portnum = port->hcd_portnum + 1; __entry->portsc = portsc; ), TP_printk("port %d-%d: %s",