mmc: sdhci: check the quirk HISPD_BIT for SD3.0 card
PATCH 1/1 mmc: sdhci: check the quirk HISPD_BIT for SD3.0 card
If SD-card is more than SD3.0 card, set to ctrl with UHS-I modes. But in case of Samsung-SoC, didn't use the SDHCI_CTRL_HISPD. So need to check the quirk for SDHCI_QUIRK_NO_HISPD_BIT.
Signed-off-by Jaehoon Chung <[email protected]>
Signed-off-by Kyungmin Park <[email protected]>
--- drivers/mmc/host/sdhci.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
drivers/mmc/host/sdhci.c +3 -2
@@ -1418,11 +1418,12 @@ static void sdhci_do_set_ios(struct sdhci_host *host, struct mmc_ios *ios)unsigned int clock;/* In case of UHS-I modes, set High Speed Enable */ -if ((ios->timing ==MMC_TIMING_MMC_HS200 ) || +if (((ios->timing ==MMC_TIMING_MMC_HS200 ) || (ios->timing ==MMC_TIMING_UHS_SDR50 ) || (ios->timing ==MMC_TIMING_UHS_SDR104 ) || (ios->timing ==MMC_TIMING_UHS_DDR50 ) || - (ios->timing ==MMC_TIMING_UHS_SDR25 )) + (ios->timing ==MMC_TIMING_UHS_SDR25 )) && + !(host->quirks &SDHCI_QUIRK_NO_HISPD_BIT )) ctrl |=SDHCI_CTRL_HISPD ; ctrl_2 =sdhci_readw (host,SDHCI_HOST_CONTROL2 );
Signature · 1 line
1.7.4.1