projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
67ab841
)
xhci: Expose segment numbers in debugfs
author
Lukas Wunner
<lukas@wunner.de>
Thu, 19 Oct 2023 10:29:13 +0000
(13:29 +0300)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Sat, 21 Oct 2023 10:38:53 +0000
(12:38 +0200)
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>
drivers/usb/host/xhci-debugfs.c
patch
|
blob
|
history
diff --git
a/drivers/usb/host/xhci-debugfs.c
b/drivers/usb/host/xhci-debugfs.c
index 99baa60ef50fe954ede2dd593b7a66004b6647e6..6d142cd61bd6b9434360d788d4a41d51cb5a4195 100644
(file)
--- a/
drivers/usb/host/xhci-debugfs.c
+++ b/
drivers/usb/host/xhci-debugfs.c
@@
-204,7
+204,7
@@
static void xhci_ring_dump_segment(struct seq_file *s,
for (i = 0; i < TRBS_PER_SEGMENT; i++) {
trb = &seg->trbs[i];
dma = seg->dma + i * sizeof(*trb);
- seq_printf(s, "%
pad: %s\n"
, &dma,
+ seq_printf(s, "%
2u %pad: %s\n", seg->num
, &dma,
xhci_decode_trb(str, XHCI_MSG_MAX, le32_to_cpu(trb->generic.field[0]),
le32_to_cpu(trb->generic.field[1]),
le32_to_cpu(trb->generic.field[2]),