mmc: msm_sdcc: fix the sdcc version check
MCI_VERSION register has the couple of fields like "major"
and "step". Driver should be checking these fields individually
but at one place we are checking the complete value of MCI_VERSION
register where we should have just checked the "step" field of it.
This change fix it by checking just "step" field instead of entire
MCI_VERSION register value.
Change-Id: If622827b0fc609b6425697c1109ad883cfbb8ad6
Signed-off-by: Subhash Jadavani <subhashj@codeaurora.org>
diff --git a/drivers/mmc/host/msm_sdcc.h b/drivers/mmc/host/msm_sdcc.h
index 5779491..2d97a0f 100644
--- a/drivers/mmc/host/msm_sdcc.h
+++ b/drivers/mmc/host/msm_sdcc.h
@@ -483,7 +483,7 @@
if ((step == 0x18) && (minor >= 3))
host->hw_caps |= MSMSDCC_AUTO_CMD21;
- if (version >= 0x2b) /* SDCC v4 2.1.0 and greater */
+ if (step >= 0x2b) /* SDCC v4 2.1.0 and greater */
host->hw_caps |= MSMSDCC_SW_RST | MSMSDCC_AUTO_CMD21;
}