From: Yuvaraj Kumar C D Date: Tue, 21 May 2013 09:38:43 +0000 (+0530) Subject: mmc: core: Update the ext-csd.rev check for eMMC5.1 X-Git-Tag: v3.11-rc1~50^2~51 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6636bad839d9936e73e48c4841eda83a58fcdb53;p=profile%2Fivi%2Fkernel-x86-ivi.git mmc: core: Update the ext-csd.rev check for eMMC5.1 With the new eMMC5.1 spec, there is a new EXT_CSD register with the revision number(EXT_CSD_REV) 7. This patch updates the check for ext-csd.rev number as 7. Signed-off-by: Alim Akhtar Signed-off-by: Yuvaraj Kumar C D Reviewed-by: Doug Anderson Signed-off-by: Chris Ball --- diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 3a69b94..9132609 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -293,7 +293,7 @@ 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 > 6) { + 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;