Commit f0ef8834 authored by Huang Shijie's avatar Huang Shijie Committed by Greg Kroah-Hartman

serial: imx: use the dmaengine_tx_status

Use the dmaengine_tx_status to simplify the code, do not change any logic.
Signed-off-by: default avatarHuang Shijie <b32955@freescale.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 947c74eb
...@@ -521,7 +521,7 @@ static void dma_tx_work(struct work_struct *w) ...@@ -521,7 +521,7 @@ static void dma_tx_work(struct work_struct *w)
unsigned long flags; unsigned long flags;
int ret; int ret;
status = chan->device->device_tx_status(chan, (dma_cookie_t)0, NULL); status = dmaengine_tx_status(chan, (dma_cookie_t)0, NULL);
if (DMA_IN_PROGRESS == status) if (DMA_IN_PROGRESS == status)
return; return;
...@@ -926,7 +926,7 @@ static void dma_rx_callback(void *data) ...@@ -926,7 +926,7 @@ static void dma_rx_callback(void *data)
/* unmap it first */ /* unmap it first */
dma_unmap_sg(sport->port.dev, sgl, 1, DMA_FROM_DEVICE); dma_unmap_sg(sport->port.dev, sgl, 1, DMA_FROM_DEVICE);
status = chan->device->device_tx_status(chan, (dma_cookie_t)0, &state); status = dmaengine_tx_status(chan, (dma_cookie_t)0, &state);
count = RX_BUF_SIZE - state.residue; count = RX_BUF_SIZE - state.residue;
dev_dbg(sport->port.dev, "We get %d bytes.\n", count); dev_dbg(sport->port.dev, "We get %d bytes.\n", count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment