From fd41dca5b14df7faefdda5dc6c0bbcdc8f6facc0 Mon Sep 17 00:00:00 2001 From: Shankar Athanikar Date: Fri, 24 Dec 2021 16:49:16 +0530 Subject: 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 Reviewed-by: 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 --- mmc_cmds.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/mmc_cmds.c b/mmc_cmds.c index c5eea65..f024079 100644 --- a/mmc_cmds.c +++ b/mmc_cmds.c @@ -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) { -- cgit 1.2.3-korg