]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/mmc/host/sdhci.c
mmc: sdhci: add hooks for platform specific tuning
[karo-tx-linux.git] / drivers / mmc / host / sdhci.c
index 7a7fb4f0d5a43a4829fa1e258afbf112f4dd9b82..072d78ce2664281c06cf6cb77754d935b25235d6 100644 (file)
@@ -1875,6 +1875,14 @@ static int sdhci_execute_tuning(struct mmc_host *mmc, u32 opcode)
                return 0;
        }
 
+       if (host->ops->platform_execute_tuning) {
+               spin_unlock(&host->lock);
+               enable_irq(host->irq);
+               err = host->ops->platform_execute_tuning(host, opcode);
+               sdhci_runtime_pm_put(host);
+               return err;
+       }
+
        sdhci_writew(host, ctrl, SDHCI_HOST_CONTROL2);
 
        /*