[PATCH 2/3] mci: sdhci: Fix TIMEOUT_CONTROL register value
Sascha Hauer
s.hauer at pengutronix.de
Thu May 21 01:05:06 PDT 2026
A timeout value of 0xf is reserved for most (all?) controllers. Use 0xe
which is the maximum allowed value and used throughout all controllers
in barebox.
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
drivers/mci/sdhci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/mci/sdhci.c b/drivers/mci/sdhci.c
index 19b845302e..0d20f3b63e 100644
--- a/drivers/mci/sdhci.c
+++ b/drivers/mci/sdhci.c
@@ -138,7 +138,7 @@ int sdhci_send_command(struct sdhci *host, struct mci_cmd *cmd)
dma == SDHCI_NO_DMA ? false : true,
&command, &xfer);
- sdhci_write8(host, SDHCI_TIMEOUT_CONTROL, 0xf);
+ sdhci_write8(host, SDHCI_TIMEOUT_CONTROL, 0xe);
if (xfer)
sdhci_write16(host, SDHCI_TRANSFER_MODE, xfer);
if (cmd->data) {
--
2.47.3
More information about the barebox
mailing list