platform: msm_shared: restrict the rpmb frame count to 1
Change the rpmb reliable write frame count as per emmc
specification, it should be set to 1 for emmc version
less than 5.1.
Change-Id: Iea456bcb2ef67b19d72b45ac09265c849733cf72
diff --git a/platform/msm_shared/rpmb/rpmb.c b/platform/msm_shared/rpmb/rpmb.c
index 3c85b8d..dd7b85f 100644
--- a/platform/msm_shared/rpmb/rpmb.c
+++ b/platform/msm_shared/rpmb/rpmb.c
@@ -54,8 +54,9 @@
info.size = mmc_dev->card.rpmb_size / RPMB_MIN_BLK_SZ;
if (mmc_dev->card.ext_csd[MMC_EXT_CSD_REV] < 8)
{
+ //as per emmc spec rel_wr_count should be 1 for emmc version < 5.1
dprintf(SPEW, "EMMC Version < 5.1\n");
- info.rel_wr_count = mmc_dev->card.rel_wr_count;
+ info.rel_wr_count = 1;
}
else
{