Linux-Amlogic Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] mmc: meson-gx: increase power-up delay
@ 2023-03-14 17:24 Marc Gonzalez
  2023-03-14 19:45 ` Heiner Kallweit
  0 siblings, 1 reply; 9+ messages in thread
From: Marc Gonzalez @ 2023-03-14 17:24 UTC (permalink / raw)
  To: Ulf Hansson, Neil Armstrong, Kevin Hilman, Jerome Brunet,
	Martin Blumenstingl, Pierre-Hugues Husson, Heiner Kallweit,
	Rong Chen, Yang Yingliang
  Cc: MMC, AML

With the default power-up delay, on small kernels, the host probes
too soon, and mmc_send_io_op_cond() times out.

Signed-off-by: Marc Gonzalez <marc.w.gonzalez@free.fr>
---
Stress-tested with 80 cold boots, checking every time
mmc2: new ultra high speed SDR50 SDIO card at address 0001
IIUC, this will also slow down SD & MMC probing,
but an additional 20 ms seems acceptable?
---
 drivers/mmc/host/meson-gx-mmc.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/mmc/host/meson-gx-mmc.c b/drivers/mmc/host/meson-gx-mmc.c
index 6e5ea0213b477..73ecbcf588c65 100644
--- a/drivers/mmc/host/meson-gx-mmc.c
+++ b/drivers/mmc/host/meson-gx-mmc.c
@@ -1182,6 +1182,7 @@ static int meson_mmc_probe(struct platform_device *pdev)
 	mmc = mmc_alloc_host(sizeof(struct meson_host), &pdev->dev);
 	if (!mmc)
 		return -ENOMEM;
+	mmc->ios.power_delay_ms = 20;
 	host = mmc_priv(mmc);
 	host->mmc = mmc;
 	host->dev = &pdev->dev;
-- 
2.25.1

_______________________________________________
linux-amlogic mailing list
linux-amlogic@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-amlogic

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

end of thread, other threads:[~2023-03-16 16:32 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-14 17:24 [PATCH] mmc: meson-gx: increase power-up delay Marc Gonzalez
2023-03-14 19:45 ` Heiner Kallweit
2023-03-15 10:20   ` Marc Gonzalez
2023-03-15 15:27     ` Jerome Brunet
2023-03-15 21:14       ` Heiner Kallweit
2023-03-16 12:32         ` Marc Gonzalez
2023-03-16 13:02           ` Marc Gonzalez
2023-03-16 11:59       ` Ulf Hansson
2023-03-16 16:32         ` Marc Gonzalez

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox