All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/4] mmc-utils: improve lsmmc usability
@ 2026-06-17 17:24 Torstein Eide
  2026-06-17 17:24 ` [PATCH v3 1/4] mmc-utils: lsmmc: Use external .ids files for manufacturer lookup Torstein Eide
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Torstein Eide @ 2026-06-17 17:24 UTC (permalink / raw)
  To: linux-mmc; +Cc: Torstein Eide

This series improves lsmmc in four areas: external manufacturer ID files,
accepting /dev and /sys/block paths for register reads, an mmc list command,
and bash completion for mmc-utils.

Changes since v2:
- Patch 1 (now also includes the v2 "refactor CID parsing" patch, squashed
  in since it had no independent value on its own):
  - get_manufacturer: return strdup("0x%02x", manid) instead of NULL for
    unknown manufacturer IDs, so callers always get a printable string
- Patch 2 (Accept /dev and /sys/block paths for register reads):
  - resolve_dev_path: use snprintf() instead of strncpy()+manual NUL
    termination to copy basedev
- Patch 3 (Add mmc list command):
  - print_list_entry: new helper, split out of do_list() to format one
    table row per device
  - do_list: probe both SD and MMC ids files once up front so any
    "ids file not found" warning is printed before the table, not
    interleaved with it
  - do_list: skip sysfs entries whose type is neither "MMC" nor "SD"
    instead of relying on a missing cid file to filter them out
- Patch 4: unchanged from v2

Torstein Eide (4):
  mmc-utils: lsmmc: Use external .ids files for manufacturer lookup
  mmc-utils: lsmmc: Accept /dev and /sys/block paths for register reads
  mmc-utils: lsmmc: Add mmc list command
  mmc-utils: Add bash completion

 Makefile           |  11 +-
 completion/mmc     |  62 +++++
 docs/HOWTO.rst     |  77 +++++-
 lsmmc.c            | 621 ++++++++++++++++++++++++++-------------------
 mmc.c              |   6 +-
 mmc_cmds.h         |   1 +
 multimediacard.ids |  16 ++
 sdcard.ids         |  23 ++
 8 files changed, 543 insertions(+), 274 deletions(-)
 create mode 100644 completion/mmc
 create mode 100644 multimediacard.ids
 create mode 100644 sdcard.ids

-- 
2.53.0


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-06-17 17:24 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-17 17:24 [PATCH v3 0/4] mmc-utils: improve lsmmc usability Torstein Eide
2026-06-17 17:24 ` [PATCH v3 1/4] mmc-utils: lsmmc: Use external .ids files for manufacturer lookup Torstein Eide
2026-06-17 17:24 ` [PATCH v3 2/4] mmc-utils: lsmmc: Accept /dev and /sys/block paths for register reads Torstein Eide
2026-06-17 17:24 ` [PATCH v3 3/4] mmc-utils: lsmmc: Add mmc list command Torstein Eide
2026-06-17 17:24 ` [PATCH v3 4/4] mmc-utils: Add bash completion Torstein Eide

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.