All of lore.kernel.org
 help / color / mirror / Atom feed
From: Torstein Eide <torsteine+linux@gmail.com>
To: linux-mmc@vger.kernel.org
Cc: Torstein Eide <torsteine+linux@gmail.com>
Subject: [PATCH v6 0/3] mmc-utils: lsmmc: add 'mmc list' command
Date: Mon, 10 Aug 2026 17:34:39 +0200	[thread overview]
Message-ID: <20260810153442.132286-1-torsteine+linux@gmail.com> (raw)

This series adds a 'mmc list' command to lsmmc that scans
/sys/bus/mmc/devices/ and prints a one-line summary per MMC/SD device
(device name, /dev path, bus type, manufacturer, product, revision,
serial number, and manufacturing date), and teaches the existing
register-read commands to accept /dev and /sys/block paths directly
instead of only sysfs device directories.

Changes since v5:
- Patch 1 (Use external .ids files ...): carried forward the
  0x09 "ATP" sd_database entry from the mainline-only fix in
  d64cb08 ("mmc-utils: lsmmc.c: Add ATP to SD Card Manufacturer ID
  database") into the new sdcard.ids, so the manufacturer ID isn't
  lost in the move to external ID files.
- Picked up Reviewed-by: Avri Altman <avri.altman@sandisk.com> on
  all three patches.

Torstein Eide (3):
  mmc-utils: lsmmc: Use external .ids files and accept /dev, /sys/block
    paths
  mmc-utils: lsmmc: Factor out CID month/year helpers
  mmc-utils: lsmmc: Add mmc list command

 Makefile           |   8 +-
 docs/HOWTO.rst     |  71 ++++-
 lsmmc.c            | 649 ++++++++++++++++++++++++++-------------------
 mmc.c              |   6 +-
 mmc_cmds.h         |   1 +
 multimediacard.ids |  16 ++
 sdcard.ids         |  24 ++
 7 files changed, 486 insertions(+), 289 deletions(-)
 create mode 100644 multimediacard.ids
 create mode 100644 sdcard.ids

--
2.53.0

             reply	other threads:[~2026-08-10 15:34 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-10 15:34 Torstein Eide [this message]
2026-08-10 15:34 ` [PATCH v6 1/3] mmc-utils: lsmmc: Use external .ids files and accept /dev, /sys/block paths Torstein Eide
2026-08-10 15:34 ` [PATCH v6 2/3] mmc-utils: lsmmc: Factor out CID month/year helpers Torstein Eide
2026-08-10 15:34 ` [PATCH v6 3/3] mmc-utils: lsmmc: Add mmc list command 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=20260810153442.132286-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 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.