Commit Graph
5 Commits
Author SHA1 Message Date
Giuseppe CAVALLARO a5bf4a2030 improve the parsing of the EXT_CSD registers
This patch enhances the debug information reported
for the mmc card by parsing the extended CSD registers
obviously according to all the current specifications.

I have no HW to test eMMC 4.5 at this moment. In any case,
the patch supports JEDEC Standard No. 84-B45.
No issues on JESD84-A441 and older specs raised on my side.

This patch indeed want to start providing a full parsing
of the all EXT_CSD registers in the following layout:

Name [FIELD: <value>]

Voluntarily, I added the FIELD because it can actually help on
searching though the SPEC in case of doubts.
In fact, in this stage, not all the register bits are yet parsed.
Currently this has been done for a small subset of registers
(e.g. 173, 160 ...) where IMO it's quite useful for an end-user
to get some details. I do hope this will be improved in the near
feature (also for write operations).

P.S. The original patch posted time ago for the Kernel has been
reviewed-by Sebastian Rasmussen, acked-by: Linus Walleij and reported
by Youssef Tiki.

Signed-off-by: Giuseppe Cavallaro <peppe.cavallaro@st.com>
Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-20 12:14:32 -05:00
Chris Ball 7a39ed3893 Remove unneeded dependency on libuuid.
Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-16 15:41:02 -05:00
Chris Ball 45541d55fa Hook up "mmc extcsd read/write" commands.
Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-12 12:03:30 -05:00
Johan RUDHOLM a8bfde77e0 Add extcsd write-protect read/write code
This was posted to linux-mmc@ by Johan Rudholm.

Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-12 11:52:25 -05:00
Goffredo Baroncelli 80d2660fa9 Create "mmc" utility
This commit was made by Chris Ball, but reuses framework code from
Goffredo's btrfs-progs/btrfs.c.

Signed-off-by: Chris Ball <cjb@laptop.org>
2012-02-12 11:43:14 -05:00