diff mbox

Detect the mmc v4.5

Message ID 20110726081237.GA15049@july (mailing list archive)
State New, archived
Headers show

Commit Message

Kyungmin Park July 26, 2011, 8:12 a.m. UTC
From: Kyungmin Park <kyungmin.park@samsung.com>

As eMMC v4.5 Spec is released, prepare the eMMC v4.5

EXT_CSD_REV	Extended CSD Revision
255-7		Reserved
6		Revision 1.6 (for MMC v4.5)
5		Revision 1.5 (for MMV v4.41)
...

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
--
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

Comments

Chris Ball July 28, 2011, 10:32 p.m. UTC | #1
Hi Kyungmin,

On Tue, Jul 26 2011, Kyungmin Park wrote:
> From: Kyungmin Park <kyungmin.park@samsung.com>
>
> As eMMC v4.5 Spec is released, prepare the eMMC v4.5
>
> EXT_CSD_REV	Extended CSD Revision
> 255-7		Reserved
> 6		Revision 1.6 (for MMC v4.5)
> 5		Revision 1.5 (for MMV v4.41)
> ...
>
> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
> ---
> diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
> index aa7d1d7..5700b1c 100644
> --- a/drivers/mmc/core/mmc.c
> +++ b/drivers/mmc/core/mmc.c
> @@ -259,7 +259,7 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
>  	}
>  
>  	card->ext_csd.rev = ext_csd[EXT_CSD_REV];
> -	if (card->ext_csd.rev > 5) {
> +	if (card->ext_csd.rev > 6) {
>  		printk(KERN_ERR "%s: unrecognised EXT_CSD revision %d\n",
>  			mmc_hostname(card->host), card->ext_csd.rev);
>  		err = -EINVAL;

Pushed to mmc-next for 3.1, thanks.

- Chris.
diff mbox

Patch

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index aa7d1d7..5700b1c 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -259,7 +259,7 @@  static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
 	}
 
 	card->ext_csd.rev = ext_csd[EXT_CSD_REV];
-	if (card->ext_csd.rev > 5) {
+	if (card->ext_csd.rev > 6) {
 		printk(KERN_ERR "%s: unrecognised EXT_CSD revision %d\n",
 			mmc_hostname(card->host), card->ext_csd.rev);
 		err = -EINVAL;