diff options
author | Shankar Athanikar <shankar.ma@samsung.com> | 2021-12-24 16:49:16 +0530 |
---|---|---|
committer | Ulf Hansson <ulf.hansson@linaro.org> | 2022-01-25 18:29:56 +0100 |
commit | fd41dca5b14df7faefdda5dc6c0bbcdc8f6facc0 (patch) | |
tree | f9443e7b6d148917c1b9e69157a2d2697f0fc1b7 | |
parent | 4465006b3c2adb852c80a0d62cc99bcfbd44addc (diff) | |
download | mmc-utils-fd41dca5b14df7faefdda5dc6c0bbcdc8f6facc0.tar.gz |
mmc_cmds: Display BARRIER_CTRL Status when printing EXT_CSD
The status of BARRIER_CTRL can be read from this byte: EXT_CSD[31](R/W)
Signed-off-by: Shankar Athanikar <shankar.ma@samsung.com>
Reviewed-by: <mohanraj.v@samsung.com>
Link: https://lore.kernel.org/r/20211224111917.707440-1-shankar.ma@samsung.com
[Ulf: Cleaned up whitespace and corrected sob-tag]
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
-rw-r--r-- | mmc_cmds.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -1831,7 +1831,9 @@ int do_read_extcsd(int nargs, char **argv) printf("Control to turn the Cache ON/OFF" " [CACHE_CTRL]: 0x%02x\n", ext_csd[33]); /* flush_cache ext_csd[32] not readable */ - /*Reserved [31:0] */ + printf("Control to turn the Cache Barrier ON/OFF" + " [BARRIER_CTRL]: 0x%02x\n", ext_csd[31]); + /*Reserved [30:0] */ } if (ext_csd_rev >= 7) { |