summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2020-07-24 13:37:38 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2020-07-24 13:37:38 -0700
commitb85bcb784fd84ef854f6a6d03a0c48c207d0b0ec (patch)
tree5541bf4ae53a0b2fd096b7a712b3e3fea557cdc6
parent88fff0b7dcc132c924d710d75d1401264b6d0ef6 (diff)
parentebd4050c6144b38098d8eed34df461e5e3fa82a9 (diff)
downloadlwn-b85bcb784fd84ef854f6a6d03a0c48c207d0b0ec.tar.gz
lwn-b85bcb784fd84ef854f6a6d03a0c48c207d0b0ec.zip
Merge tag 'mmc-v5.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc into master
Pull MMC fix from Ulf Hansson: "Fix clock divider calculation in the ASPEED SDHCI controller" * tag 'mmc-v5.8-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/ulfh/mmc: mmc: sdhci-of-aspeed: Fix clock divider calculation
-rw-r--r--drivers/mmc/host/sdhci-of-aspeed.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/sdhci-of-aspeed.c b/drivers/mmc/host/sdhci-of-aspeed.c
index 56912e30c47e..a1bcc0f4ba9e 100644
--- a/drivers/mmc/host/sdhci-of-aspeed.c
+++ b/drivers/mmc/host/sdhci-of-aspeed.c
@@ -68,7 +68,7 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
if (WARN_ON(clock > host->max_clk))
clock = host->max_clk;
- for (div = 1; div < 256; div *= 2) {
+ for (div = 2; div < 256; div *= 2) {
if ((parent / div) <= clock)
break;
}