|
@@ -87,6 +87,12 @@ static inline void tmio_mmc_abort_dma(struct tmio_mmc_host *host)
|
|
|
host->dma_ops->abort(host);
|
|
|
}
|
|
|
|
|
|
+static inline void tmio_mmc_dataend_dma(struct tmio_mmc_host *host)
|
|
|
+{
|
|
|
+ if (host->dma_ops)
|
|
|
+ host->dma_ops->dataend(host);
|
|
|
+}
|
|
|
+
|
|
|
void tmio_mmc_enable_mmc_irqs(struct tmio_mmc_host *host, u32 i)
|
|
|
{
|
|
|
host->sdcard_irq_mask &= ~(i & TMIO_MASK_IRQ);
|
|
@@ -605,11 +611,11 @@ static void tmio_mmc_data_irq(struct tmio_mmc_host *host, unsigned int stat)
|
|
|
|
|
|
if (done) {
|
|
|
tmio_mmc_disable_mmc_irqs(host, TMIO_STAT_DATAEND);
|
|
|
- complete(&host->dma_dataend);
|
|
|
+ tmio_mmc_dataend_dma(host);
|
|
|
}
|
|
|
} else if (host->chan_rx && (data->flags & MMC_DATA_READ) && !host->force_pio) {
|
|
|
tmio_mmc_disable_mmc_irqs(host, TMIO_STAT_DATAEND);
|
|
|
- complete(&host->dma_dataend);
|
|
|
+ tmio_mmc_dataend_dma(host);
|
|
|
} else {
|
|
|
tmio_mmc_do_data_irq(host);
|
|
|
tmio_mmc_disable_mmc_irqs(host, TMIO_MASK_READOP | TMIO_MASK_WRITEOP);
|