All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/2] mci: sdhci: arasan: use correct input clock for divider calculation
@ 2024-12-12 22:10 Lucas Stach
  2024-12-12 22:10 ` [PATCH 2/2] mci: sdhci: arasan: remove dead no 1.8V quirk Lucas Stach
  2024-12-16  8:26 ` [PATCH 1/2] mci: sdhci: arasan: use correct input clock for divider calculation Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Lucas Stach @ 2024-12-12 22:10 UTC (permalink / raw)
  To: barebox

Use the clock rate going into the core to calculate the divider.
Fixes broken SD card transfers on Zynq 7000.

Fixes: 2a879e436a5f ("mci: sdhci: arasan: Use sdhci_set_clock()")
Signed-off-by: Lucas Stach <dev@lynxeye.de>
---
 drivers/mci/arasan-sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mci/arasan-sdhci.c b/drivers/mci/arasan-sdhci.c
index 37be06dffdfe..2af9ad10bed7 100644
--- a/drivers/mci/arasan-sdhci.c
+++ b/drivers/mci/arasan-sdhci.c
@@ -210,7 +210,7 @@ static void arasan_sdhci_set_clock(struct mci_host *mci, unsigned int clock)
 	clk_set_phase(clk_data->sdcardclk,
 		      clk_data->clk_phase_out[mci->mci->host->timing]);
 
-	sdhci_set_clock(&host->sdhci, clock, host->sdhci.max_clk);
+	sdhci_set_clock(&host->sdhci, clock, mci->f_max);
 }
 
 static void arasan_sdhci_set_ios(struct mci_host *mci, struct mci_ios *ios)
-- 
2.47.1




^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-16  8:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-12 22:10 [PATCH 1/2] mci: sdhci: arasan: use correct input clock for divider calculation Lucas Stach
2024-12-12 22:10 ` [PATCH 2/2] mci: sdhci: arasan: remove dead no 1.8V quirk Lucas Stach
2024-12-16  8:26 ` [PATCH 1/2] mci: sdhci: arasan: use correct input clock for divider calculation Sascha Hauer

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.