blob: 6254b3c7f01aad9dc917bb47caa7d3eedde03a8b [file] [log] [blame]
From 19053efa0207c24630574a805874c94488f073f9 Mon Sep 17 00:00:00 2001
From: Ulf Hansson <>
Date: Tue, 10 Mar 2020 15:50:11 +0100
Subject: [PATCH] mmc: sdhci-tegra: Fix busy detection by enabling
commit d2f8bfa4bff5028bc40ed56b4497c32e05b0178f upstream.
It has turned out that the sdhci-tegra 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: Bitan Biswas <>
Reported-by: Peter Geis <>
Suggested-by: Sowjanya Komatineni <>
Cc: <>
Tested-by: Sowjanya Komatineni <>
Tested-By: Peter Geis <>
Signed-off-by: Ulf Hansson <>
Signed-off-by: Paul Gortmaker <>
diff --git a/drivers/mmc/host/sdhci-tegra.c b/drivers/mmc/host/sdhci-tegra.c
index 512bb509efeb..6faa36eca170 100644
--- a/drivers/mmc/host/sdhci-tegra.c
+++ b/drivers/mmc/host/sdhci-tegra.c
@@ -1552,6 +1552,9 @@ static int sdhci_tegra_probe(struct platform_device *pdev)
if (tegra_host->soc_data->nvquirks & NVQUIRK_ENABLE_DDR50)
host->mmc->caps |= MMC_CAP_1_8V_DDR;
+ /* R1B responses is required to properly manage HW busy detection. */
+ host->mmc->caps |= MMC_CAP_NEED_RSP_BUSY;
tegra_host->power_gpio = devm_gpiod_get_optional(&pdev->dev, "power",