]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
serial: tegra: Fix cookie used by TX channel
authorJon Hunter <jonathanh@nvidia.com>
Tue, 5 May 2015 14:17:57 +0000 (15:17 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 10 May 2015 17:12:19 +0000 (19:12 +0200)
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>
drivers/tty/serial/serial-tegra.c

index a5312e4b6393500a1c36a0b61de577da13919c04..987c05665e626f26a5a6ad5e92d8e79eaa930c45 100644 (file)
@@ -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);