All the mail mirrored from lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information
@ 2017-03-20 11:07 Alexander Stein
  2017-03-20 11:07 ` [PATCH 2/2] mmc-utils: Check for ext_csd_rev only once Alexander Stein
  2017-03-20 12:07 ` [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Ulf Hansson
  0 siblings, 2 replies; 3+ messages in thread
From: Alexander Stein @ 2017-03-20 11:07 UTC (permalink / raw
  To: linux-mmc; +Cc: Alexander Stein

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 mmc.h      | 1 +
 mmc_cmds.c | 5 +++++
 2 files changed, 6 insertions(+)

diff --git a/mmc.h b/mmc.h
index f3fa03f..fa49df6 100644
--- a/mmc.h
+++ b/mmc.h
@@ -63,6 +63,7 @@
 #define EXT_CSD_NUM_OF_FW_SEC_PROG_0	302	/* RO */
 #define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B 	269	/* RO */
 #define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A 	268	/* RO */
+#define EXT_CSD_PRE_EOL_INFO		267	/* RO */
 #define EXT_CSD_FIRMWARE_VERSION	254	/* RO */
 #define EXT_CSD_CACHE_SIZE_3		252
 #define EXT_CSD_CACHE_SIZE_2		251
diff --git a/mmc_cmds.c b/mmc_cmds.c
index 0e4322e..728ad77 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -1748,6 +1748,11 @@ int do_read_extcsd(int nargs, char **argv)
 			ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]);
 	}
 
+	if (ext_csd_rev >= 7) {
+		printf("eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x%02x\n",
+			ext_csd[EXT_CSD_PRE_EOL_INFO]);
+	}
+
 	if (ext_csd_rev >= 8) {
 		printf("Command Queue Support [CMDQ_SUPPORT]: 0x%02x\n",
 		       ext_csd[EXT_CSD_CMDQ_SUPPORT]);
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [PATCH 2/2] mmc-utils: Check for ext_csd_rev only once
  2017-03-20 11:07 [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Alexander Stein
@ 2017-03-20 11:07 ` Alexander Stein
  2017-03-20 12:07 ` [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Alexander Stein @ 2017-03-20 11:07 UTC (permalink / raw
  To: linux-mmc; +Cc: Alexander Stein

Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>
---
 mmc_cmds.c | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/mmc_cmds.c b/mmc_cmds.c
index 728ad77..d7215bb 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -1736,19 +1736,10 @@ int do_read_extcsd(int nargs, char **argv)
 	if (ext_csd_rev >= 7) {
 		printf("eMMC Firmware Version: %s\n",
 			(char*)&ext_csd[EXT_CSD_FIRMWARE_VERSION]);
-	}
-
-	if (ext_csd_rev >= 7) {
 		printf("eMMC Life Time Estimation A [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]: 0x%02x\n",
 			ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A]);
-	}
-
-	if (ext_csd_rev >= 7) {
 		printf("eMMC Life Time Estimation B [EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]: 0x%02x\n",
 			ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]);
-	}
-
-	if (ext_csd_rev >= 7) {
 		printf("eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x%02x\n",
 			ext_csd[EXT_CSD_PRE_EOL_INFO]);
 	}
-- 
2.10.2


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information
  2017-03-20 11:07 [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Alexander Stein
  2017-03-20 11:07 ` [PATCH 2/2] mmc-utils: Check for ext_csd_rev only once Alexander Stein
@ 2017-03-20 12:07 ` Ulf Hansson
  1 sibling, 0 replies; 3+ messages in thread
From: Ulf Hansson @ 2017-03-20 12:07 UTC (permalink / raw
  To: Alexander Stein; +Cc: linux-mmc@vger.kernel.org

On 20 March 2017 at 12:07, Alexander Stein
<alexander.stein@systec-electronic.com> wrote:
> Signed-off-by: Alexander Stein <alexander.stein@systec-electronic.com>

Alexander, Chris Ball is the maintainer of mmc-utils. I think you
should re-post and make sure he is on the to list.

Kind regards
Uffe

> ---
>  mmc.h      | 1 +
>  mmc_cmds.c | 5 +++++
>  2 files changed, 6 insertions(+)
>
> diff --git a/mmc.h b/mmc.h
> index f3fa03f..fa49df6 100644
> --- a/mmc.h
> +++ b/mmc.h
> @@ -63,6 +63,7 @@
>  #define EXT_CSD_NUM_OF_FW_SEC_PROG_0   302     /* RO */
>  #define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B     269     /* RO */
>  #define EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_A     268     /* RO */
> +#define EXT_CSD_PRE_EOL_INFO           267     /* RO */
>  #define EXT_CSD_FIRMWARE_VERSION       254     /* RO */
>  #define EXT_CSD_CACHE_SIZE_3           252
>  #define EXT_CSD_CACHE_SIZE_2           251
> diff --git a/mmc_cmds.c b/mmc_cmds.c
> index 0e4322e..728ad77 100644
> --- a/mmc_cmds.c
> +++ b/mmc_cmds.c
> @@ -1748,6 +1748,11 @@ int do_read_extcsd(int nargs, char **argv)
>                         ext_csd[EXT_CSD_DEVICE_LIFE_TIME_EST_TYP_B]);
>         }
>
> +       if (ext_csd_rev >= 7) {
> +               printf("eMMC Pre EOL information [EXT_CSD_PRE_EOL_INFO]: 0x%02x\n",
> +                       ext_csd[EXT_CSD_PRE_EOL_INFO]);
> +       }
> +
>         if (ext_csd_rev >= 8) {
>                 printf("Command Queue Support [CMDQ_SUPPORT]: 0x%02x\n",
>                        ext_csd[EXT_CSD_CMDQ_SUPPORT]);
> --
> 2.10.2
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2017-03-20 12:07 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-03-20 11:07 [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Alexander Stein
2017-03-20 11:07 ` [PATCH 2/2] mmc-utils: Check for ext_csd_rev only once Alexander Stein
2017-03-20 12:07 ` [PATCH 1/2] mmc-utils: feature spec 5.0+, Pre EOL information Ulf Hansson

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.