Commit 5da5e494 authored by Faiz Abbas's avatar Faiz Abbas Committed by Ulf Hansson

mmc: sdhci-omap: Disable data timeout interrupt during erase

Disable data timeout interrupt during an erase operation.
Signed-off-by: default avatarFaiz Abbas <faiz_abbas@ti.com>
Acked-by: default avatarAdrian Hunter <adrian.hunter@intel.com>
Link: https://lore.kernel.org/r/20200116105154.7685-8-faiz_abbas@ti.comSigned-off-by: default avatarUlf Hansson <ulf.hansson@linaro.org>
parent 7d76ed77
...@@ -7,6 +7,7 @@ ...@@ -7,6 +7,7 @@
*/ */
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/mmc/mmc.h>
#include <linux/mmc/slot-gpio.h> #include <linux/mmc/slot-gpio.h>
#include <linux/module.h> #include <linux/module.h>
#include <linux/of.h> #include <linux/of.h>
...@@ -827,6 +828,15 @@ static u32 sdhci_omap_irq(struct sdhci_host *host, u32 intmask) ...@@ -827,6 +828,15 @@ static u32 sdhci_omap_irq(struct sdhci_host *host, u32 intmask)
return intmask; return intmask;
} }
static void sdhci_omap_set_timeout(struct sdhci_host *host,
struct mmc_command *cmd)
{
if (cmd->opcode == MMC_ERASE)
sdhci_set_data_timeout_irq(host, false);
__sdhci_set_timeout(host, cmd);
}
static struct sdhci_ops sdhci_omap_ops = { static struct sdhci_ops sdhci_omap_ops = {
.set_clock = sdhci_omap_set_clock, .set_clock = sdhci_omap_set_clock,
.set_power = sdhci_omap_set_power, .set_power = sdhci_omap_set_power,
...@@ -838,6 +848,7 @@ static struct sdhci_ops sdhci_omap_ops = { ...@@ -838,6 +848,7 @@ static struct sdhci_ops sdhci_omap_ops = {
.reset = sdhci_omap_reset, .reset = sdhci_omap_reset,
.set_uhs_signaling = sdhci_omap_set_uhs_signaling, .set_uhs_signaling = sdhci_omap_set_uhs_signaling,
.irq = sdhci_omap_irq, .irq = sdhci_omap_irq,
.set_timeout = sdhci_omap_set_timeout,
}; };
static int sdhci_omap_set_capabilities(struct sdhci_omap_host *omap_host) static int sdhci_omap_set_capabilities(struct sdhci_omap_host *omap_host)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment