Skip to contentSkip to conversation

mmc: Limit MMC speed to 25MHz if HIGHSPEED CAPS bit is not set.

PATCH In review Al Cooper 1 participant 2 messages May 14, 2012 MMC, SD and SDIO

lore
Share & tools
lore

Al Cooper

author
#0 lore raw

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.

---
 drivers/mmc/core/mmc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/core/mmc.c +1 -1
index 54df5ad..912c893 100644
@@ -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
#1 lore raw

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.

---
 drivers/mmc/core/mmc.c |    2 +-

 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/mmc/core/mmc.c +1 -2
index 54df5ad..912c893 100644
@@ -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