aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mmc
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/mmc')
-rw-r--r--drivers/mmc/host/sdhci.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c
index f76736b50bc7..206b52fec443 100644
--- a/drivers/mmc/host/sdhci.c
+++ b/drivers/mmc/host/sdhci.c
@@ -2584,7 +2584,7 @@ EXPORT_SYMBOL_GPL(sdhci_alloc_host);
2584int sdhci_add_host(struct sdhci_host *host) 2584int sdhci_add_host(struct sdhci_host *host)
2585{ 2585{
2586 struct mmc_host *mmc; 2586 struct mmc_host *mmc;
2587 u32 caps[2]; 2587 u32 caps[2] = {0, 0};
2588 u32 max_current_caps; 2588 u32 max_current_caps;
2589 unsigned int ocr_avail; 2589 unsigned int ocr_avail;
2590 int ret; 2590 int ret;
@@ -2614,8 +2614,10 @@ int sdhci_add_host(struct sdhci_host *host)
2614 caps[0] = (host->quirks & SDHCI_QUIRK_MISSING_CAPS) ? host->caps : 2614 caps[0] = (host->quirks & SDHCI_QUIRK_MISSING_CAPS) ? host->caps :
2615 sdhci_readl(host, SDHCI_CAPABILITIES); 2615 sdhci_readl(host, SDHCI_CAPABILITIES);
2616 2616
2617 caps[1] = (host->version >= SDHCI_SPEC_300) ? 2617 if (host->version >= SDHCI_SPEC_300)
2618 sdhci_readl(host, SDHCI_CAPABILITIES_1) : 0; 2618 caps[1] = (host->quirks & SDHCI_QUIRK_MISSING_CAPS) ?
2619 host->caps1 :
2620 sdhci_readl(host, SDHCI_CAPABILITIES_1);
2619 2621
2620 if (host->quirks & SDHCI_QUIRK_FORCE_DMA) 2622 if (host->quirks & SDHCI_QUIRK_FORCE_DMA)
2621 host->flags |= SDHCI_USE_SDMA; 2623 host->flags |= SDHCI_USE_SDMA;