mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set.
PATCH 1/1 mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set.
If the HIGHSPEED capabilities bit is not set, limit the MMC clock speed to 25MHz.
Signed-off-by Al Cooper <[email protected]>
--- drivers/mmc/core/mmc.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/core/mmc.c +1 -1
@@ -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 ); }
Signature · 1 line
1.7.6
This is not Al's email address. Please have him use his own email address.
Quoted 25 lines · Al Cooper
If the HIGHSPEED capabilities bit is not set, limit the MMC clock speed to 25MHz.
Signed-off-by Al Cooper <[email protected]>---
drivers/mmc/core/mmc.c | 2 +-1 files changed, 1 insertions(+), 1 deletions(-)drivers/mmc/core/mmc.c +1
-2@@ -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