From 09d7a805dc42ea13bf79df2345fd32e65326e83a Mon Sep 17 00:00:00 2001 From: Ziqi Chen Date: Wed, 12 Aug 2020 13:36:53 +0800 Subject: [PATCH] mmc: sdhci: Fix SDHCI_QUIRK2_IGNORE_DATATOUT_FOR_R1BCMD handling If this quirk is set, then data timeout interrupt must not be handled for R1B commands, as those commands may need larger timeout value (larger than max timeout that controller can handle). Change-Id: I7453b1914add21b47393b3eb1578d88e72da7406 Signed-off-by: Sahitya Tummala Signed-off-by: Veerabhadrarao Badiganti Signed-off-by: Sayali Lokhande Signed-off-by: Ziqi Chen --- drivers/mmc/host/sdhci.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/mmc/host/sdhci.c b/drivers/mmc/host/sdhci.c index 90ff537636b1..e96198b83ece 100644 --- a/drivers/mmc/host/sdhci.c +++ b/drivers/mmc/host/sdhci.c @@ -3252,13 +3252,6 @@ static void sdhci_data_irq(struct sdhci_host *host, u32 intmask) * above in sdhci_cmd_irq(). */ if (data_cmd && (data_cmd->flags & MMC_RSP_BUSY)) { - if (intmask & SDHCI_INT_DATA_TIMEOUT) { - host->data_cmd = NULL; - data_cmd->error = -ETIMEDOUT; - host->mmc->err_stats[MMC_ERR_CMD_TIMEOUT]++; - sdhci_finish_mrq(host, data_cmd->mrq); - return; - } if (intmask & SDHCI_INT_DATA_END) { host->data_cmd = NULL; /*