From: Lucas Stach Date: Mon, 29 Feb 2016 20:56:24 +0000 (+0100) Subject: mmc: tegra: properly disable card clock X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3491b69045b1926a198ba70dc1296ca253f2fbdd;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mmc: tegra: properly disable card clock The new code to do the clock rate setting externally to the SDMMC module has a shortcut to not propagate changes with a 0 rate to the CAR by simply bailing out. This breaks proper cutting of the card clock. Fix it by directly calling the correct sdhci function. Fixes: a8e326a911d3 "mmc: tegra: implement module external clock change" Signed-off-by: Lucas Stach Acked-by: Adrian Hunter Cc: stable@vger.kernel.org Signed-off-by: Ulf Hansson --- diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c index 8993db376dc4..79c2a2b7428a 100644 --- a/drivers/mmc/host/sdhci-tegra.c +++ b/drivers/mmc/host/sdhci-tegra.c @@ -194,7 +194,7 @@ static void tegra_sdhci_set_clock(struct sdhci_host *host, unsigned int clock) unsigned long host_clk; if (!clock) - return; + return sdhci_set_clock(host, clock); host_clk = tegra_host->ddr_signaling ? clock * 2 : clock; clk_set_rate(pltfm_host->clk, host_clk);