From: Torstein Eide <torsteine+linux@gmail.com>
To: linux-mmc@vger.kernel.org
Cc: Torstein Eide <torsteine+linux@gmail.com>
Subject: [PATCH v3 0/4] mmc-utils: improve lsmmc usability
Date: Wed, 17 Jun 2026 19:24:07 +0200 [thread overview]
Message-ID: <20260617172411.42805-1-torsteine+linux@gmail.com> (raw)
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
next reply other threads:[~2026-06-17 17:24 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-17 17:24 Torstein Eide [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260617172411.42805-1-torsteine+linux@gmail.com \
--to=torsteine+linux@gmail.com \
--cc=linux-mmc@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox