Skip to content

mmc-utils: lsmmc: add 'mmc list' command

Torstein Eide linux-mmc 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v6 Latest3 patches 1 replyIn review
  2. v53 patches 1 replySuperseded
  3. v43 patches 3 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v34 patches2 repliesSuperseded

Changes in v6 from the cover letter

- 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 <[email protected]> on all three patches.

Patches in v6 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3mmc-utils: lsmmc: Use external .ids files and accept /dev, /sys/block pathsMakefile docs/HOWTO.rst lsmmc.c +2 more+309 -2780 replies
2/3mmc-utils: lsmmc: Factor out CID month/year helperslsmmc.c+41 -250 replies
3/3mmc-utils: lsmmc: Add mmc list commanddocs/HOWTO.rst lsmmc.c mmc.c +1 more+151 -10 replies

Reviews trailers per patch

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

PatchAvri Altman
1/3R-b
2/3R-b
3/3R-b

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

Read the v6 thread

Cover letter [PATCH v6 0/3] mmc-utils: lsmmc: add 'mmc list' command

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 <[email protected]> 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