mmc: atmel-mci: use dmaengine helper functions
Use the new dmaengine helpers to make the code more readable. Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Chris Ball <cjb@laptop.org>
This commit is contained in:
committed by
Chris Ball
parent
88ce4db313
commit
5328906aa2
@@ -589,7 +589,7 @@ static void atmci_stop_dma(struct atmel_mci *host)
|
|||||||
struct dma_chan *chan = host->data_chan;
|
struct dma_chan *chan = host->data_chan;
|
||||||
|
|
||||||
if (chan) {
|
if (chan) {
|
||||||
chan->device->device_control(chan, DMA_TERMINATE_ALL, 0);
|
dmaengine_terminate_all(chan);
|
||||||
atmci_dma_cleanup(host);
|
atmci_dma_cleanup(host);
|
||||||
} else {
|
} else {
|
||||||
/* Data transfer was stopped by the interrupt handler */
|
/* Data transfer was stopped by the interrupt handler */
|
||||||
@@ -710,8 +710,8 @@ static void atmci_submit_data(struct atmel_mci *host)
|
|||||||
struct dma_async_tx_descriptor *desc = host->dma.data_desc;
|
struct dma_async_tx_descriptor *desc = host->dma.data_desc;
|
||||||
|
|
||||||
if (chan) {
|
if (chan) {
|
||||||
desc->tx_submit(desc);
|
dmaengine_submit(desc);
|
||||||
chan->device->device_issue_pending(chan);
|
dma_async_issue_pending(chan);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user