提交 49433c80 编写于 作者: J Jon Hunter 提交者: Greg Kroah-Hartman

serial: tegra: Fix cookie used by TX channel

The DMA cookie for the RX channel is being used by the TX channel.
Therefore, fix driver to use the correct DMA cookie for the TX channel.
Signed-off-by: NJon Hunter <jonathanh@nvidia.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 0b0c1bdf
...@@ -410,7 +410,7 @@ static void tegra_uart_tx_dma_complete(void *args) ...@@ -410,7 +410,7 @@ static void tegra_uart_tx_dma_complete(void *args)
unsigned long flags; unsigned long flags;
unsigned int count; unsigned int count;
dmaengine_tx_status(tup->tx_dma_chan, tup->rx_cookie, &state); dmaengine_tx_status(tup->tx_dma_chan, tup->tx_cookie, &state);
count = tup->tx_bytes_requested - state.residue; count = tup->tx_bytes_requested - state.residue;
async_tx_ack(tup->tx_dma_desc); async_tx_ack(tup->tx_dma_desc);
spin_lock_irqsave(&tup->uport.lock, flags); spin_lock_irqsave(&tup->uport.lock, flags);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册