Skip to contentSkip to conversation

Detect the mmc v4.5

PATCH Applied Kyungmin Park 2 participants 2 messages Jul 26, 2011 – Jul 28, 2011 MMC, SD and SDIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Detect the mmc v4.5

From: Kyungmin Park <[email protected]>

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)
...

---

drivers/mmc/core/mmc.c +1 -1
index aa7d1d7..5700b1c 100644
@@ -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;
Applied
#1 lore raw

Hi Kyungmin,

Quoted 17 lines · Kyungmin Park

From: Kyungmin Park <[email protected]>

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)
...

---

drivers/mmc/core/mmc.c +0 -0
index aa7d1d7..5700b1c 100644

drivers/mmc/core/mmc.c static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) · line 265

Quoted 8 lines
drivers/mmc/core/mmc.c +1 -1
@@ -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.

Signature · 2 lines
Chris Ball   <[email protected]>   <http://printf.net/>
One Laptop Per Child