From 0b4be86998f4e0155359b399031d45de811d3ca6 Mon Sep 17 00:00:00 2001 From: Computoncio Date: Fri, 26 Sep 2014 09:20:39 -0300 Subject: [PATCH] Merged sdcard code, thanks to RovG from http://wiki.cyanogenmod.org/w/EMMC_Bugs#MAG2GA_TRIM_bug --- drivers/mmc/core/mmc.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index c49a62b75d45..af9435b5a5c1 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -131,6 +131,7 @@ static int mmc_decode_cid(struct mmc_card *card) card->cid.prod_name[4] = UNSTUFF_BITS(resp, 64, 8); card->cid.prod_name[5] = UNSTUFF_BITS(resp, 56, 8); card->cid.prod_rev = UNSTUFF_BITS(resp, 48, 8); + card->cid.fwrev = card->cid.prod_rev; /* duplicates cid.prod_rev */ card->cid.serial = UNSTUFF_BITS(resp, 16, 32); card->cid.month = UNSTUFF_BITS(resp, 12, 4); card->cid.year = UNSTUFF_BITS(resp, 8, 4) + 1997;