Skip to content

debugfs: a tool to print 32-bit registers

Alessandro Rubini lkml 2 versions – Applied

Status from this message: I've applied this, but it causes the following complier warnings to be

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest2 patches 6 repliesApplied
  2. v1 RFC1 patch 7 repliesSuperseded

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/2debugfs: add tools to printk 32-bit registersDocumentation/filesystems/debugfs.txt fs/debugfs/file.c include/linux/debugfs.h+147 -10 replies
2/2usb: dwc3: use debugfs_print_regs32()drivers/usb/dwc3/debugfs.c+3 -125 replies

Reviews trailers per patch

All 2 patches have a Reviewed-by or Acked-by.

PatchGiancarlo AsnaghiFelipe Balbi
1/2A-b
2/2A-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

Cover letter [PATCH V2 0/2] debugfs: a tool to print 32-bit registers

This is V2 of what I posted a few days ago. I also updates the file in Documentation. I Cc:d people who gave feedback.

Patch 2 uses the new tool for an existing file I didn't initially notice (I had a victim file, but it's seriously failing compilation). Code removal there is almost zero because Felipe Balbi already did stuff in the way I do.

Mark Brown suggested to look at drivers/base/regmap, and actually this may be duplicating what is already being worked on in a more general way. My code base is earlier than regmap so I didn't notice. Unfortunately I have no resources left to study regmap as it deserves.

Mark, if you say this is not useful at this point, I'm fine with it; I may return with some regbase-aware code when time permits if it's not already there.

/alessandro

Alessandro Rubini (2):
debugfs: add tools to printk 32-bit registers
usb: dwc3: use debugfs_print_regs32()

 Documentation/filesystems/debugfs.txt |   32 +++++++++++-
 drivers/usb/dwc3/debugfs.c            |   15 +----
 fs/debugfs/file.c                     |   90 +++++++++++++++++++++++++++++++++
 include/linux/debugfs.h               |   26 +++++++++
 4 files changed, 150 insertions(+), 13 deletions(-)