diff options
-rw-r--r-- | drivers/mmc/core/mmc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index e5ed79eb8e3d..6d02012a1d0b 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c | |||
@@ -482,6 +482,10 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd) | |||
482 | } | 482 | } |
483 | 483 | ||
484 | if (card->ext_csd.rev >= 5) { | 484 | if (card->ext_csd.rev >= 5) { |
485 | /* Adjust production date as per JEDEC JESD84-B451 */ | ||
486 | if (card->cid.year < 2010) | ||
487 | card->cid.year += 16; | ||
488 | |||
485 | /* check whether the eMMC card supports BKOPS */ | 489 | /* check whether the eMMC card supports BKOPS */ |
486 | if (ext_csd[EXT_CSD_BKOPS_SUPPORT] & 0x1) { | 490 | if (ext_csd[EXT_CSD_BKOPS_SUPPORT] & 0x1) { |
487 | card->ext_csd.bkops = 1; | 491 | card->ext_csd.bkops = 1; |