If the HIGHSPEED capabilities bit is not set, limit the MMC clock
speed to 25MHz.

Signed-off-by: Al Cooper <acoo...@gmail.com>
---
 drivers/mmc/core/mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/mmc/core/mmc.c b/drivers/mmc/core/mmc.c
index 54df5ad..912c893 100644
--- a/drivers/mmc/core/mmc.c
+++ b/drivers/mmc/core/mmc.c
@@ -1045,7 +1045,7 @@ static int mmc_init_card(struct mmc_host *host, u32 ocr,
                                mmc_card_set_hs200(card);
                                mmc_set_timing(card->host,
                                               MMC_TIMING_MMC_HS200);
-                       } else {
+                       } else if (host->caps & MMC_CAP_MMC_HIGHSPEED) {
                                mmc_card_set_highspeed(card);
                                mmc_set_timing(card->host, MMC_TIMING_MMC_HS);
                        }
-- 
1.7.6


--
To unsubscribe from this list: send the line "unsubscribe linux-mmc" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to