mmc: sdhci: Enable high speed support for MMC cards
Allow high speed mode for high speed capable ver 4.x MMC cards.
Comments and/or feedback appreciated.
Signed-off-by George G. Davis <[email protected]>
--- drivers/mmc/host/sdhci.c | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci.c +5 -2
@@ -1161,7 +1161,8 @@ static void sdhci_set_ios(struct mmc_host *mmc, struct mmc_ios *ios) ctrl &= ~SDHCI_CTRL_8BITBUS ; } -if (ios->timing ==MMC_TIMING_SD_HS ) +if (ios->timing ==MMC_TIMING_SD_HS || + ios->timing ==MMC_TIMING_MMC_HS ) ctrl |=SDHCI_CTRL_HISPD ;else ctrl &= ~SDHCI_CTRL_HISPD ;
@@ -1797,8 +1798,10 @@ int sdhci_add_host(struct sdhci_host *host) mmc->caps |=MMC_CAP_8_BIT_DATA ; } -if (caps &SDHCI_CAN_DO_HISPD ) +if (caps &SDHCI_CAN_DO_HISPD ) { mmc->caps |=MMC_CAP_SD_HIGHSPEED ; + mmc->caps |=MMC_CAP_MMC_HIGHSPEED ; + }if (host->quirks &SDHCI_QUIRK_BROKEN_CARD_DETECTION ) mmc->caps |=MMC_CAP_NEEDS_POLL ;
Signature · 1 line
1.6.3.3.311.g43dd