All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc-utils: add the revision for eMMC5.0
@ 2013-12-04  0:29 Jaehoon Chung
  2013-12-04  8:02 ` Jackey Shen
  0 siblings, 1 reply; 2+ messages in thread
From: Jaehoon Chung @ 2013-12-04  0:29 UTC (permalink / raw)
  To: linux-mmc@vger.kernel.org; +Cc: 'Chris Ball'

To know whether eMMC card is version5.0 or not, add the check point.

Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
---
 mmc_cmds.c |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/mmc_cmds.c b/mmc_cmds.c
index b8afa74..5edf42b 100644
--- a/mmc_cmds.c
+++ b/mmc_cmds.c
@@ -722,6 +722,9 @@ int do_read_extcsd(int nargs, char **argv)
 	ext_csd_rev = ext_csd[192];
 
 	switch (ext_csd_rev) {
+	case 7:
+		str = "5.0";
+		break;
 	case 6:
 		str = "4.5";
 		break;
-- 
1.7.9.5

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

* Re: [PATCH] mmc-utils: add the revision for eMMC5.0
  2013-12-04  0:29 [PATCH] mmc-utils: add the revision for eMMC5.0 Jaehoon Chung
@ 2013-12-04  8:02 ` Jackey Shen
  0 siblings, 0 replies; 2+ messages in thread
From: Jackey Shen @ 2013-12-04  8:02 UTC (permalink / raw)
  To: Jaehoon Chung; +Cc: linux-mmc@vger.kernel.org, 'Chris Ball'

On Wed, Dec 04, 2013 at 09:29:15AM +0900, Jaehoon Chung wrote:
> To know whether eMMC card is version5.0 or not, add the check point.
> 
> Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>

Reviewed-by: Jackey Shen <Jackey.Shen@amd.com>

> ---
>  mmc_cmds.c |    3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/mmc_cmds.c b/mmc_cmds.c
> index b8afa74..5edf42b 100644
> --- a/mmc_cmds.c
> +++ b/mmc_cmds.c
> @@ -722,6 +722,9 @@ int do_read_extcsd(int nargs, char **argv)
>  	ext_csd_rev = ext_csd[192];
>  
>  	switch (ext_csd_rev) {
> +	case 7:
> +		str = "5.0";
> +		break;
>  	case 6:
>  		str = "4.5";
>  		break;
> -- 
> 1.7.9.5
> --
> 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] 2+ messages in thread

end of thread, other threads:[~2013-12-04  8:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-12-04  0:29 [PATCH] mmc-utils: add the revision for eMMC5.0 Jaehoon Chung
2013-12-04  8:02 ` Jackey Shen

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.