summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRyan QIAN <b32804@freescale.com>2012-11-22 15:38:46 +0800
committerJason Liu <r64343@freescale.com>2012-11-28 16:57:04 +0800
commitdfb9d730506d19c5f3d36358ff1511c0ae752b75 (patch)
tree73283b4868c09425bc13287e30bbdc91c99d2f05
parentf4ee80c9873f12c63c420f9ffd3ee0e46782f466 (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>
-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 f8ffabd187cf..ce5e63c61b51 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;