[PATCH 1/2] mmc: mmci: enable MMC_CAP_NEED_RSP_BUSY

From: yann.gautier
Date: Thu Feb 04 2021 - 07:09:26 EST


From: Yann Gautier <yann.gautier@xxxxxxxxxxx>

To properly manage commands awaiting R1B responses, the capability
MMC_CAP_NEED_RSP_BUSY is enabled in mmci driver, for variants that
manage busy detection.
This R1B management needs both the flags MMC_CAP_NEED_RSP_BUSY and
MMC_CAP_WAIT_WHILE_BUSY to be enabled together.

Signed-off-by: Yann Gautier <yann.gautier@xxxxxxxxxxx>
---
drivers/mmc/host/mmci.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/host/mmci.c b/drivers/mmc/host/mmci.c
index 1bc674577ff9..bf6971fdd1a6 100644
--- a/drivers/mmc/host/mmci.c
+++ b/drivers/mmc/host/mmci.c
@@ -2148,7 +2148,7 @@ static int mmci_probe(struct amba_device *dev,
if (variant->busy_dpsm_flag)
mmci_write_datactrlreg(host,
host->variant->busy_dpsm_flag);
- mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY;
+ mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;
}

/* Prepare a CMD12 - needed to clear the DPSM on some variants. */
--
2.17.1