mmc: core: Enable Secure Feature support.
Naveen Kumar Arepalli [Wed, 6 May 2015 07:06:37 +0000 (12:06 +0530)]
-Currently this feature is not enabled for ext_csd version 7.
-This patch enables Secure Feature support.

Bug 1642823

Change-Id: Iaff6dff23f35718a8d72f735f925df97ad135f86
Signed-off-by: Naveen Kumar Arepalli <naveenk@nvidia.com>
Reviewed-on: http://git-master/r/739473
(cherry picked from commit 59590e7c599ab2776e3dec6af7894b3831de3ba0)
Reviewed-on: http://git-master/r/742021
(cherry picked from commit a301b399176790a241feb40bbf862b1dea885bf0)
Reviewed-on: http://git-master/r/741475
Reviewed-by: Automatic_Commit_Validation_User
GVS: Gerrit_Virtual_Submit
Reviewed-by: David Dastous St Hilaire <ddastoussthi@nvidia.com>
Reviewed-by: Venu Byravarasu <vbyravarasu@nvidia.com>

drivers/mmc/core/mmc.c

index 84eb217..5849d55 100644 (file)
@@ -463,10 +463,11 @@ static int mmc_read_ext_csd(struct mmc_card *card, u8 *ext_csd)
                                ext_csd[EXT_CSD_SEC_TRIM_MULT];
                        card->ext_csd.sec_erase_mult =
                                ext_csd[EXT_CSD_SEC_ERASE_MULT];
-                       card->ext_csd.sec_feature_support =
-                               ext_csd[EXT_CSD_SEC_FEATURE_SUPPORT];
                }
 
+               card->ext_csd.sec_feature_support =
+                               ext_csd[EXT_CSD_SEC_FEATURE_SUPPORT];
+
                if (card->ext_csd.rev == 6) {
                        card->ext_csd.sec_feature_support =
                                ext_csd[EXT_CSD_SEC_FEATURE_SUPPORT] &