Skip to content

Commit

Permalink
serial: tegra: Fix cookie used by TX channel
Browse files Browse the repository at this point in the history
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: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Jon Hunter authored and Greg Kroah-Hartman committed May 10, 2015
1 parent 0b0c1bd commit 49433c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/serial-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ static void tegra_uart_tx_dma_complete(void *args)
unsigned long flags;
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;
async_tx_ack(tup->tx_dma_desc);
spin_lock_irqsave(&tup->uport.lock, flags);
Expand Down

0 comments on commit 49433c8

Please sign in to comment.