[PATCH V1 2/2] mmc: sdhci-msm: Enable force hw reset during cqe recovery

From: Sarthak Garg
Date: Fri Jun 03 2022 - 01:16:13 EST


Enable force hw reset during cqe recovery to make recovery more robust.

Signed-off-by: Sarthak Garg <quic_sartgarg@xxxxxxxxxxx>
---
drivers/mmc/host/sdhci-msm.c | 3 +++
1 file changed, 3 insertions(+)

diff --git a/drivers/mmc/host/sdhci-msm.c b/drivers/mmc/host/sdhci-msm.c
index e395411fb6fd..7fc40bd16031 100644
--- a/drivers/mmc/host/sdhci-msm.c
+++ b/drivers/mmc/host/sdhci-msm.c
@@ -2781,6 +2781,9 @@ static int sdhci_msm_probe(struct platform_device *pdev)

msm_host->mmc->caps |= MMC_CAP_WAIT_WHILE_BUSY | MMC_CAP_NEED_RSP_BUSY;

+ /* Enable force hw reset during cqe recovery */
+ msm_host->mmc->cqe_recovery_reset_always = true;
+
/* Set the timeout value to max possible */
host->max_timeout_count = 0xF;

--
2.17.1