Skip to content

Commit 01e6e14

Browse files
l1kgregkh
authored andcommitted
xhci: Expose segment numbers in debugfs
Ring segments have just been amended with a monotonically increasing number. To allow developers to inspect the segment numbers and ensure correctness in particular after ring expansion, expose them in each ring's "trbs" file in debugfs. Signed-off-by: Lukas Wunner <lukas@wunner.de> Signed-off-by: Mathias Nyman <mathias.nyman@linux.intel.com> Link: https://lore.kernel.org/r/20231019102924.2797346-9-mathias.nyman@linux.intel.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 67ab841 commit 01e6e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/usb/host/xhci-debugfs.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ static void xhci_ring_dump_segment(struct seq_file *s,
204204
for (i = 0; i < TRBS_PER_SEGMENT; i++) {
205205
trb = &seg->trbs[i];
206206
dma = seg->dma + i * sizeof(*trb);
207-
seq_printf(s, "%pad: %s\n", &dma,
207+
seq_printf(s, "%2u %pad: %s\n", seg->num, &dma,
208208
xhci_decode_trb(str, XHCI_MSG_MAX, le32_to_cpu(trb->generic.field[0]),
209209
le32_to_cpu(trb->generic.field[1]),
210210
le32_to_cpu(trb->generic.field[2]),

0 commit comments

Comments
 (0)