struct sdhci_tegra *tegra_host = pltfm_host->priv;
bool dll_calib_req = false;
- /* Turn OFF the clocks if removable card is not present */
- if (!(sdhci->mmc->caps & MMC_CAP_NONREMOVABLE) &&
- (mmc_gpio_get_cd(sdhci->mmc) != 0) && tegra_host->clk_enabled)
- tegra_sdhci_set_clock(sdhci, 0);
-
dll_calib_req = (sdhci->mmc->card &&
(sdhci->mmc->card->type == MMC_TYPE_MMC) &&
(sdhci->mmc->ios.timing == MMC_TIMING_MMC_HS400));
if (dll_calib_req)
tegra_sdhci_do_dll_calibration(sdhci);
+
+ /* Turn OFF the clocks if removable card is not present */
+ if (!(sdhci->mmc->caps & MMC_CAP_NONREMOVABLE) &&
+ (mmc_gpio_get_cd(sdhci->mmc) != 0) && tegra_host->clk_enabled)
+ tegra_sdhci_set_clock(sdhci, 0);
}
static const struct sdhci_ops tegra_sdhci_ops = {