Disable the DATA_TRAN_DONE interrupt as soon as possible in the handler. Signed-off-by: Petr Cvek <petr.cvek@xxxxxx> --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-mmc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html