]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
mmc: sdhci-omap: Remove setting ADMA capability in driver
authorKishon Vijay Abraham I <kishon@ti.com>
Fri, 27 Apr 2018 11:47:11 +0000 (17:17 +0530)
committerUlf Hansson <ulf.hansson@linaro.org>
Thu, 3 May 2018 07:35:21 +0000 (09:35 +0200)
sdhci can directly get ADMA capability from MMCHS_CAPA register.
Remove explicitly setting ADMA here as some instances might not have
ADMA enabled. (sdhci_read_caps() is also removed from here since
sdhci_setup_host() invokes it).

Signed-off-by: Kishon Vijay Abraham I <kishon@ti.com>
Acked-by: Adrian Hunter <adrian.hunter@intel.com>
Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-omap.c

index e7e43f2ae2247a65596def6fc4071db49bff7e89..78f3ceea570eec5cdf514834c1be9fd3cfcf233d 100644 (file)
@@ -923,9 +923,6 @@ static int sdhci_omap_probe(struct platform_device *pdev)
        host->mmc_host_ops.card_busy = sdhci_omap_card_busy;
        host->mmc_host_ops.execute_tuning = sdhci_omap_execute_tuning;
 
-       sdhci_read_caps(host);
-       host->caps |= SDHCI_CAN_DO_ADMA2;
-
        ret = sdhci_setup_host(host);
        if (ret)
                goto err_put_sync;