]> Git Repo - linux.git/commitdiff
mmc: sdhci-sprd: Fix minimum clock limit
authorWenchao Chen <[email protected]>
Tue, 11 Oct 2022 10:49:35 +0000 (18:49 +0800)
committerUlf Hansson <[email protected]>
Tue, 11 Oct 2022 13:48:51 +0000 (15:48 +0200)
The Spreadtrum controller supports 100KHz minimal clock rate, which means
that the current value 400KHz is wrong.

Unfortunately this has also lead to fail to initialize some cards, which
are allowed to require 100KHz to work. So, let's fix the problem by
changing the minimal supported clock rate to 100KHz.

Signed-off-by: Wenchao Chen <[email protected]>
Acked-by: Adrian Hunter <[email protected]>
Fixes: fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
Cc: [email protected]
Link: https://lore.kernel.org/r/[email protected]
[Ulf: Clarified to commit-message]
Signed-off-by: Ulf Hansson <[email protected]>
drivers/mmc/host/sdhci-sprd.c

index 46c55ab4884c2431cd6c65f4f3a296ced944c7dd..b92a408f138ddf66868513cb173105d1988e7de1 100644 (file)
@@ -309,7 +309,7 @@ static unsigned int sdhci_sprd_get_max_clock(struct sdhci_host *host)
 
 static unsigned int sdhci_sprd_get_min_clock(struct sdhci_host *host)
 {
-       return 400000;
+       return 100000;
 }
 
 static void sdhci_sprd_set_uhs_signaling(struct sdhci_host *host,
This page took 0.054439 seconds and 4 git commands to generate.