* [PATCH] There is small problem to support the MMC card >4 GByte.
@ 2009-09-14 8:58 Sukumar Ghorai
0 siblings, 0 replies; only message in thread
From: Sukumar Ghorai @ 2009-09-14 8:58 UTC (permalink / raw)
To: linux-arm-kernel
EXT_CSD_REV could be any value <=3D2 and are valid as per MMCA Specificatio=
n. And it was checking for CSD_STRUCTURE filed of EXT_CSD register.
Signed-off-by: Sukumar Ghorai <s-ghorai@ti.com>
---
drivers/mmc/core/mmc.c | 2 +-
include/linux/mmc/mmc.h | 1 +
2 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 06084db..7b22a2e 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -216,7 +216,7 @@ static int mmc_read_ext_csd(struct mmc_card *card)
goto out;
}
- if (ext_csd_struct >=3D 2) {
+ if (ext_csd[EXT_CSD_STRUCT_REV] >=3D 2) {
card->ext_csd.sectors =3D
ext_csd[EXT_CSD_SEC_CNT + 0] << 0 |
ext_csd[EXT_CSD_SEC_CNT + 1] << 8 |
diff --git a/include/linux/mmc/mmc.h b/include/linux/mmc/mmc.h
index 14b81f3..c4e97a9 100644
--- a/include/linux/mmc/mmc.h
+++ b/include/linux/mmc/mmc.h
@@ -252,6 +252,7 @@ struct _mmc_csd {
#define EXT_CSD_BUS_WIDTH 183 /* R/W */
#define EXT_CSD_HS_TIMING 185 /* R/W */
#define EXT_CSD_CARD_TYPE 196 /* RO */
+#define EXT_CSD_STRUCT_REV 194 /* RO */
#define EXT_CSD_REV 192 /* RO */
#define EXT_CSD_SEC_CNT 212 /* RO, 4 bytes */
--
1.5.4.7
Thanks Regards,
Ghorai
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-09-14 8:58 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-09-14 8:58 [PATCH] There is small problem to support the MMC card >4 GByte Sukumar Ghorai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).