Signed-off-by: Ben Gardiner <[email protected]>
---
 mmc.h      |    1 +
 mmc_cmds.c |    8 +++++++-
 2 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/mmc.h b/mmc.h
index 47ef8ea..3420d7b 100644
--- a/mmc.h
+++ b/mmc.h
@@ -41,6 +41,7 @@
 #define EXT_CSD_BKOPS_EN               163     /* R/W */
 #define EXT_CSD_RST_N_FUNCTION         162     /* R/W */
 #define EXT_CSD_PARTITIONING_SUPPORT   160     /* RO */
+#define EXT_CSD_PARTITION_SETTING_COMPLETED    155     /* R/W */
 #define EXT_CSD_NATIVE_SECTOR_SIZE     63 /* R */
 #define EXT_CSD_USE_NATIVE_SECTOR      62 /* R/W */
 #define EXT_CSD_DATA_SECTOR_SIZE       61 /* R */
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 8cf6e89..dd7498e 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -687,9 +687,15 @@ int do_read_extcsd(int nargs, char **argv)
                            ext_csd[157]);
                printf("Partitions attribute [PARTITIONS_ATTRIBUTE]: 0x%02x\n",
                        ext_csd[156]);
+               reg = ext_csd[EXT_CSD_PARTITION_SETTING_COMPLETED];
                printf("Partitioning Setting"
                        " [PARTITION_SETTING_COMPLETED]: 0x%02x\n",
-                       ext_csd[155]);
+                       reg);
+               if(reg)
+                       printf(" Device partition setting complete\n");
+               else
+                       printf(" Device partition setting NOT complete\n");
+
                printf("General Purpose Partition Size\n"
                        " [GP_SIZE_MULT_4]: 0x%06x\n", (ext_csd[154] << 16) |
                        (ext_csd[153] << 8) | ext_csd[152]);
-- 
1.7.3.5

--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to