diff options
author | Micky Ching <micky_ching@realsil.com.cn> | 2014-02-21 18:40:35 +0800 |
---|---|---|
committer | Chris Ball <chris@printf.net> | 2014-02-22 13:19:40 -0500 |
commit | 9107ebbf9652c033eb5dd10a6ea34a132db3cde1 (patch) | |
tree | 7e5769085be6b0097bb4fde9d9fdbe4dd9bbf3a1 /drivers/mmc/host/sdhci.c | |
parent | b13d1f0f9ad64bc498ced07344495ba27321419e (diff) | |
download | lwn-9107ebbf9652c033eb5dd10a6ea34a132db3cde1.tar.gz lwn-9107ebbf9652c033eb5dd10a6ea34a132db3cde1.zip |
mmc: sdhci: add support for realtek rts5250
Add support for realtek rts5250 pci card reader. The card reader has
some problems with DDR50 mode, so add a new quirks2 for broken ddr50.
Signed-off-by: Micky Ching <micky_ching@realsil.com.cn>
Signed-off-by: Chris Ball <chris@printf.net>
Diffstat (limited to 'drivers/mmc/host/sdhci.c')
-rw-r--r-- | drivers/mmc/host/sdhci.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 9ddef4763541..8958edc03e04 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3020,7 +3020,8 @@ int sdhci_add_host(struct sdhci_host *host) } else if (caps[1] & SDHCI_SUPPORT_SDR50) mmc->caps |= MMC_CAP_UHS_SDR50; - if (caps[1] & SDHCI_SUPPORT_DDR50) + if ((caps[1] & SDHCI_SUPPORT_DDR50) && + !(host->quirks2 & SDHCI_QUIRK2_BROKEN_DDR50)) mmc->caps |= MMC_CAP_UHS_DDR50; /* Does the host need tuning for SDR50? */ |