Skip to content

Commit

Permalink
mmc: sdhci-of-aspeed: Uphold clocks-on post-condition of set_clock()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andrew Jeffery authored and Ulf Hansson committed Sep 11, 2019
1 parent bf29043 commit 7b954cd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/mmc/host/sdhci-of-aspeed.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7b954cd

Please sign in to comment.