Skip to content

Commit

Permalink
Added support for eMMC 4.5
Browse files Browse the repository at this point in the history
Signed-off-by: Raffaele Recalcati <raffaele.recalcati@bticino.it>
  • Loading branch information
bticino committed Jan 17, 2014
1 parent 8201860 commit 59f7438
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/mmc/core/mmc.c
Expand Up @@ -218,7 +218,7 @@ static int mmc_read_ext_csd(struct mmc_card *card)
/* Version is coded in the CSD_STRUCTURE byte in the EXT_CSD register */
if (card->csd.structure == 3) {
int ext_csd_struct = ext_csd[EXT_CSD_STRUCTURE];
if (ext_csd_struct > 2) {
if (ext_csd_struct > 6) {
printk(KERN_ERR "%s: unrecognised EXT_CSD structure "
"version %d\n", mmc_hostname(card->host),
ext_csd_struct);
Expand All @@ -228,7 +228,7 @@ static int mmc_read_ext_csd(struct mmc_card *card)
}

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;
Expand Down

0 comments on commit 59f7438

Please sign in to comment.