All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Recognize CSD structure version 3
@ 2010-05-31  6:40 Kyungmin Park
  2010-05-31  7:06 ` Ben Dooks
  2010-06-01  9:51 ` Adrian Hunter
  0 siblings, 2 replies; 6+ messages in thread
From: Kyungmin Park @ 2010-05-31  6:40 UTC (permalink / raw)
  To: linux-mmc, akpm

The eMMC spec 4.4 and 4.3 + additional feature chips has CSD structure version 3
To probe these chip properly and make it simple.
it doesn't check CSD structure.

Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
---
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 89f7a25..9e42bc6 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -118,15 +118,12 @@ static int mmc_decode_csd(struct mmc_card *card)
 	u32 *resp = card->raw_csd;
 
 	/*
-	 * We only understand CSD structure v1.1 and v1.2.
+	 * We understand all CSD structure v1.1, v1.2 and v1.3.
 	 * v1.2 has extra information in bits 15, 11 and 10.
 	 */
 	csd_struct = UNSTUFF_BITS(resp, 126, 2);
-	if (csd_struct != 1 && csd_struct != 2) {
-		printk(KERN_ERR "%s: unrecognised CSD structure version %d\n",
+	printk(KERN_DEBUG "%s: recognised CSD structure version %d\n",
 			mmc_hostname(card->host), csd_struct);
-		return -EINVAL;
-	}
 
 	csd->mmca_vsn	 = UNSTUFF_BITS(resp, 122, 4);
 	m = UNSTUFF_BITS(resp, 115, 4);

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

end of thread, other threads:[~2010-06-02 19:31 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-05-31  6:40 [PATCH] Recognize CSD structure version 3 Kyungmin Park
2010-05-31  7:06 ` Ben Dooks
2010-05-31  7:35   ` Kyungmin Park
2010-06-01  9:51 ` Adrian Hunter
2010-06-02  8:12   ` Kyungmin Park
2010-06-02 19:31     ` Adrian Hunter

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.