Skip to content

Commit b85bcb7

Browse files
committed
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
2 parents 88fff0b + ebd4050 commit b85bcb7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/mmc/host/sdhci-of-aspeed.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ static void aspeed_sdhci_set_clock(struct sdhci_host *host, unsigned int clock)
6868
if (WARN_ON(clock > host->max_clk))
6969
clock = host->max_clk;
7070

71-
for (div = 1; div < 256; div *= 2) {
71+
for (div = 2; div < 256; div *= 2) {
7272
if ((parent / div) <= clock)
7373
break;
7474
}

0 commit comments

Comments
 (0)