From: Viswanath Puttagunta <vishp@xxxxxx> MMC_CAP_UHS_DDR50 is SD card feature and not eMMC feature. We don't have to check for this flag to enable DDR on MMC. Checking for MMC_CAP_1_8V_DDR host capability is sufficient. This patch is needed for OMAP4 platforms as hsmmc can support DDR with eMMC but does not support UHS speed mode for SD card. Signed-off-by: Viswanath Puttagunta <vishp@xxxxxx> Signed-off-by: Balaji T K <balajitk@xxxxxx> --- drivers/mmc/core/mmc.c | 10 ++++------ 1 files changed, 4 insertions(+), 6 deletions(-) diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c index 7509de1..9937c91 100644 --- a/drivers/mmc/core/mmc.c +++ b/drivers/mmc/core/mmc.c @@ -1062,14 +1062,12 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr, */ if (mmc_card_highspeed(card)) { if ((card->ext_csd.card_type & EXT_CSD_CARD_TYPE_DDR_1_8V) - && ((host->caps & (MMC_CAP_1_8V_DDR | - MMC_CAP_UHS_DDR50)) - == (MMC_CAP_1_8V_DDR | MMC_CAP_UHS_DDR50))) + && (host->caps & (MMC_CAP_1_8V_DDR | + MMC_CAP_UHS_DDR50))) ddr = MMC_1_8V_DDR_MODE; else if ((card->ext_csd.card_type & EXT_CSD_CARD_TYPE_DDR_1_2V) - && ((host->caps & (MMC_CAP_1_2V_DDR | - MMC_CAP_UHS_DDR50)) - == (MMC_CAP_1_2V_DDR | MMC_CAP_UHS_DDR50))) + && (host->caps & (MMC_CAP_1_2V_DDR | + MMC_CAP_UHS_DDR50))) ddr = MMC_1_2V_DDR_MODE; } -- 1.7.5.4 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html