mmc: sdhci-of-aspeed: Uphold clocks-on post-condition of set_clock()
authorAndrew Jeffery <andrew@aj.id.au>
Mon, 2 Sep 2019 03:58:41 +0000 (13:28 +0930)
committerUlf Hansson <ulf.hansson@linaro.org>
Wed, 11 Sep 2019 13:58:39 +0000 (15:58 +0200)
The early-exit didn't seem to matter on the AST2500, but on the AST2600
the SD clock genuinely may not be running on entry to
aspeed_sdhci_set_clock(). Remove the early exit to ensure we always run
sdhci_enable_clk().

Signed-off-by: Andrew Jeffery <andrew@aj.id.au>
Signed-off-by: Ulf Hansson <ulf.hansson@linaro.org>
drivers/mmc/host/sdhci-of-aspeed.c

index 6ae81c8af431310c6b26c55e58be8b4e9ab89b69..0b75806ed69d532540b57dba3757a55fab25c5ea 100644 (file)
@@ -55,9 +55,6 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
        int div;
        u16 clk;
 
-       if (clock == host->clock)
-               return;
-
        sdhci_writew(host, 0, SDHCI_CLOCK_CONTROL);
 
        if (clock == 0)