Bean Huo b7e4d5a6ae mmc-utils: Add General command CMD56 read support
We can use GEN_CMD (CMD56) to read a  data block with vendor-specific
format and meaning, which is very helpful and useful for customers to
analyze device health. This patch is to add support for this command.

At the same time, in order to make CMD56 universal, let more users of
mmc-utils can benefit from this. We will allow the user to enter [arg]
for special commands. Because some eMMC vendors provide an additional
set of commands beyond the GEN_CMD (CMD56) definition in the JEDEC
specification. These additional commands are implemented using generic
CMD56 commands, and they return a wealth of useful information about the
state of the NAND device. For these special purposes, the [31:1]stuff
bits in the CMD56 argument are used. You can refer to  Micron eMMC
"TN-FC-32: e·MMC Device Health Report" as an example.

I didn't add data parsing, just print the raw data as it is vendor-specific.

Signed-off-by: Bean Huo <beanhuo@micron.com>
Acked-by: Avri Altman <Avri.Altman@wdc.com>
Tested-by: Rossler Jakob (Nokia - DE/Ulm) <jakob.rossler@nokia.com>
Link: https://lore.kernel.org/r/20220417111622.621650-1-huobean@gmail.com
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
2022-04-26 13:48:57 +02:00
2018-02-16 20:19:35 -05:00
2015-03-24 22:09:55 -04:00
2022-01-25 17:19:41 +01:00

MMC tools (mmc-utils)
=====================

mmc-utils is a tool for configuring MMC storage devices from userspace.

Contribution guidelines
-----------------------

The project works using a mailing list patch submission process, similar to the
process used for the Linux kernel itself.

One can document themselves by reading how to submit a patch in the official
Linux kernel documentation:
https://www.kernel.org/doc/html/latest/process/submitting-patches.html

Not all sections apply but it should be a good way to get started.

A patch should be sent as a mail (not as an attachement, see documentation
above) to the linux-mmc@vger.kernel.org mailing list with maintainers as
Cc recipients.

Maintainers
-----------

Avri Altman <avri.altman@wdc.com>
Ulf Hansson <ulf.hansson@linaro.org>

License
-------

This project is licensed under GPL-2.0-only.
S
Description
No description provided
Readme
186 KiB
0 Stars 1 Watchers 0 Forks
2023-07-31 14:04:52 +00:00
Languages
C 99%
Makefile 1%