mmc: sdhci-sprd: Fix minimum clock limit
Subsystems (3)
PATCH v2 1/1 mmc: sdhci-sprd: Fix minimum clock limit
From: Wenchao Chen <[email protected]>
v1 -> v2:
- Address Adrian's suggestions
Our controller supports 100K. During the test, it was found that mmc_rescan failed to scan the card at 400K, and did not try 300K, 200K, and 100K. After modifying the minimum clock limit to 100K, the card scan was successful
Signed-off-by Wenchao Chen <[email protected]>
Acked-by Adrian Hunter <[email protected]>
Fixes fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
--- drivers/mmc/host/sdhci-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/mmc/host/sdhci-sprd.c +1 -1
@@ -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,
Signature · 1 line
2.17.1
Quoted 6 lines · Wenchao Chen
From: Wenchao Chen <[email protected]>
v1 -> v2:
- Address Adrian's suggestions
Quoted 7 lines
Our controller supports 100K. During the test, it was found that
mmc_rescanfailed to scan the card at 400K, and did not try 300K, 200K, and 100K. After modifying the minimum clock limit to 100K, the card scan was successfulSigned-off-by Wenchao Chen <[email protected]>Acked-by Adrian Hunter <[email protected]>Fixes fb8bd90f83c4 ("mmc: sdhci-sprd: Add Spreadtrum's initial host controller")
Applied for fixes, thanks!
Kind regards
Uffe
Quoted 20 lines
--- drivers/mmc/host/sdhci-sprd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/mmc/host/sdhci-sprd.c +1
-2@@ -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, --2.17.1