blob: c627226dc28041f5b6d309ed89e8aa93843c3f2d [file] [log] [blame]
From 336949b1b4bcec1a8fcaf3d95b14814820702147 Mon Sep 17 00:00:00 2001
From: Ulf Hansson <>
Date: Tue, 10 Mar 2020 15:05:02 +0100
Subject: [PATCH] mmc: sdhci-omap: Fix busy detection by enabling
commit 055e04830d4544c57f2a5192a26c9e25915c29c0 upstream.
It has turned out that the sdhci-omap controller requires the R1B response,
for commands that has this response associated with them. So, converting
from an R1B to an R1 response for a CMD6 for example, leads to problems
with the HW busy detection support.
Fix this by informing the mmc core about the requirement, via setting the
Reported-by: Naresh Kamboju <>
Reported-by: Anders Roxell <>
Reported-by: Faiz Abbas <>
Cc: <>
Tested-by: Anders Roxell <>
Tested-by: Faiz Abbas <>
Signed-off-by: Ulf Hansson <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c
index 083e7e053c95..d3135249b2e4 100644
--- a/drivers/mmc/host/sdhci-omap.c
+++ b/drivers/mmc/host/sdhci-omap.c
@@ -1134,6 +1134,9 @@ static int sdhci_omap_probe(struct platform_device *pdev)
host->mmc_host_ops.execute_tuning = sdhci_omap_execute_tuning;
host->mmc_host_ops.enable_sdio_irq = sdhci_omap_enable_sdio_irq;
+ /* R1B responses is required to properly manage HW busy detection. */
+ mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
ret = sdhci_setup_host(host);
if (ret)
goto err_put_sync;