Message ID | 20211224111917.707440-1-shankar.ma@samsung.com |
---|---|
State | New |
Headers | show |
Series | [1/2] Display BARRIER_CTRL Status when printing EXT_CSD | expand |
On Fri, 24 Dec 2021 at 12:23, Shankar Athanikar <shankar.ma@samsung.com> wrote: > > The status of BARRIER_CTRL can be read from this byte: EXT_CSD[31](R/W) > Signed-off-by : shankar.ma@samsung.com > Reviewed-by : mohanraj.v@samsung.com Applied to git.kernel.org/pub/scm//utils/mmc/mmc-utils.git master, thanks! I have fixed up the S-o-B tag and some whitespace errors, as checkpatch complained about it. Kind regards Uffe > --- > mmc_cmds.c | 5 ++++- > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/mmc_cmds.c b/mmc_cmds.c > index c5eea65..5e5e79e 100644 > --- a/mmc_cmds.c > +++ b/mmc_cmds.c > @@ -1831,7 +1831,10 @@ 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) { > -- > 2.25.1 >
diff --git a/mmc_cmds.c b/mmc_cmds.c index c5eea65..5e5e79e 100644 --- a/mmc_cmds.c +++ b/mmc_cmds.c @@ -1831,7 +1831,10 @@ 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) {