From mboxrd@z Thu Jan 1 00:00:00 1970 From: Adrian Hunter Subject: Re: [PATCH v4 07/11] mmc: sdhci-omap: Disable data timeout interrupt during erase Date: Wed, 15 Jan 2020 14:05:51 +0200 Message-ID: References: <20200106110133.13791-1-faiz_abbas@ti.com> <20200106110133.13791-8-faiz_abbas@ti.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Return-path: Received: from mga02.intel.com ([134.134.136.20]:64416 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726165AbgAOMGs (ORCPT ); Wed, 15 Jan 2020 07:06:48 -0500 In-Reply-To: <20200106110133.13791-8-faiz_abbas@ti.com> Content-Language: en-US Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Faiz Abbas , linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-mmc@vger.kernel.org Cc: kishon@ti.com, mark.rutland@arm.com, robh+dt@kernel.org, ulf.hansson@linaro.org, tony@atomide.com On 6/01/20 1:01 pm, Faiz Abbas wrote: > Disable data timeout interrupt during an erase operation > > Signed-off-by: Faiz Abbas Acked-by: Adrian Hunter > --- > drivers/mmc/host/sdhci-omap.c | 11 +++++++++++ > 1 file changed, 11 insertions(+) > > diff --git a/drivers/mmc/host/sdhci-omap.c b/drivers/mmc/host/sdhci-omap.c > index 84d85aa743da..1f05c8e98d62 100644 > --- a/drivers/mmc/host/sdhci-omap.c > +++ b/drivers/mmc/host/sdhci-omap.c > @@ -7,6 +7,7 @@ > */ > > #include > +#include > #include > #include > #include > @@ -827,6 +828,15 @@ static u32 sdhci_omap_irq(struct sdhci_host *host, u32 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 = { > .set_clock = sdhci_omap_set_clock, > .set_power = sdhci_omap_set_power, > @@ -838,6 +848,7 @@ static struct sdhci_ops sdhci_omap_ops = { > .reset = sdhci_omap_reset, > .set_uhs_signaling = sdhci_omap_set_uhs_signaling, > .irq = sdhci_omap_irq, > + .set_timeout = sdhci_omap_set_timeout, > }; > > static int sdhci_omap_set_capabilities(struct sdhci_omap_host *omap_host) >