Message ID | CA+E=qVfC_GgFOT94oZ3hkG-6v-ENRKxQ=xnJTnxxKhiX+a0fFg@mail.gmail.com |
---|---|
State | Not Applicable, archived |
Headers | show |
diff --git a/drivers/mmc/host/pxamci.c b/drivers/mmc/host/pxamci.c index eb725d3..b52e06e 100644 --- a/drivers/mmc/host/pxamci.c +++ b/drivers/mmc/host/pxamci.c @@ -237,8 +237,10 @@ static void pxamci_setup_data(struct pxamci_host *host, struct mmc_data *data) return; } - tx->callback = pxamci_dma_irq; - tx->callback_param = host; + if (!(data->flags & MMC_DATA_READ)) { + tx->callback = pxamci_dma_irq; + tx->callback_param = host; + } host->dma_cookie = dmaengine_submit(tx);