[PATCH 3/4] mmc: pxamci: Disable DATA_TRAN_DONE interrupt sooner
Petr Cvek
petr.cvek at tul.cz
Tue Apr 18 19:17:33 EDT 2017
Disable the DATA_TRAN_DONE interrupt as soon as possible in the handler.
Signed-off-by: Petr Cvek <petr.cvek at tul.cz>
---
drivers/mmc/host/pxamci.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c
index 48c26d848e9f..570735a10127 100644
--- a/drivers/mmc/host/pxamci.c
+++ b/drivers/mmc/host/pxamci.c
@@ -354,6 +354,8 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
struct mmc_data *data = host->data;
struct dma_chan *chan;
+ pxamci_disable_irq(host, DATA_TRAN_DONE);
+
if (!data) {
pr_err("%s: Missing data structure\n",
mmc_hostname(host->mmc));
@@ -389,8 +391,6 @@ static int pxamci_data_done(struct pxamci_host *host, unsigned int stat)
else
data->bytes_xfered = 0;
- pxamci_disable_irq(host, DATA_TRAN_DONE);
-
host->data = NULL;
if (host->mrq->stop) {
pxamci_stop_clock(host);
--
2.11.0
More information about the linux-arm-kernel
mailing list