summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--platform/msm_shared/rpmb/rpmb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/platform/msm_shared/rpmb/rpmb.c b/platform/msm_shared/rpmb/rpmb.c
index 3c85b8dc..07976d27 100644
--- a/platform/msm_shared/rpmb/rpmb.c
+++ b/platform/msm_shared/rpmb/rpmb.c
@@ -52,8 +52,10 @@ int rpmb_init()
{
struct mmc_device *mmc_dev = (struct mmc_device *) dev;
info.size = mmc_dev->card.rpmb_size / RPMB_MIN_BLK_SZ;
- if (mmc_dev->card.ext_csd[MMC_EXT_CSD_REV] < 8)
- {
+ if (MMC_CARD_SD((&mmc_dev->card))) {
+ /* SDCARD => no ext_csd/RPMB support */
+ info.rel_wr_count = 0;
+ } else if (mmc_dev->card.ext_csd[MMC_EXT_CSD_REV] < 8) {
dprintf(SPEW, "EMMC Version < 5.1\n");
info.rel_wr_count = mmc_dev->card.rel_wr_count;
}
@@ -229,5 +231,3 @@ int rpmb_uninit()
return ret;
}
-
-