summaryrefslogtreecommitdiff
path: root/drivers/mmc
diff options
context:
space:
mode:
authorRyan QIAN <b32804@freescale.com>2012-11-22 15:38:46 +0800
committerNitin Garg <nitin.garg@freescale.com>2014-06-03 22:58:39 -0500
commitc8f8901f061e359ac421b91bd89a03facd11b469 (patch)
tree2d12dd30540a9d671d9259b53c68d8e4b06539bf /drivers/mmc
parent23cfaa6cb65eab49a3b9815b2eba575d0ae0fec4 (diff)
ENGR00234519 mmc: support eMMC v4.5 memory cards
Bypass eMMC version checking, so that eMMC v4.5 can work on current kernel as eMMC v4.4 cards, no specific v4.5 feature supported. Only basic read/write operations are supported, also ddr mode is supported. Acked-by: Dong Aisheng <b29396@freescale.com> Signed-off-by: Ryan QIAN <b32804@freescale.com>
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/core/mmc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index de828586d4fd..55780d426df0 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -259,7 +259,8 @@ 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) {
+ /* workaround: support emmc 4.5 cards to work at emmc 4.4 mode */
+ 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;