Skip to content

Commit

Permalink
mmc: Allow more recent ext_csd revisions to work.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mark Featherston committed Mar 19, 2018
1 parent 6040e79 commit 96fe65b
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions drivers/mmc/core/mmc.c
Expand Up @@ -294,13 +294,6 @@ 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 > 7) {
pr_err("%s: unrecognised EXT_CSD revision %d\n",
mmc_hostname(card->host), card->ext_csd.rev);
err = -EINVAL;
goto out;
}

card->ext_csd.raw_sectors[0] = ext_csd[EXT_CSD_SEC_CNT + 0];
card->ext_csd.raw_sectors[1] = ext_csd[EXT_CSD_SEC_CNT + 1];
card->ext_csd.raw_sectors[2] = ext_csd[EXT_CSD_SEC_CNT + 2];
Expand Down

0 comments on commit 96fe65b

Please sign in to comment.