From: Jon Hunter Date: Tue, 5 May 2015 14:17:57 +0000 (+0100) Subject: serial: tegra: Fix cookie used by TX channel X-Git-Tag: v4.2-rc1~87^2~77 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=49433c802cb3405e62d3394b9c663f6c9ad329e5;p=linux.git 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: Jon Hunter Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/tty/serial/serial-tegra.c b/drivers/tty/serial/serial-tegra.c index a5312e4b6393..987c05665e62 100644 --- a/drivers/tty/serial/serial-tegra.c +++ b/drivers/tty/serial/serial-tegra.c @@ -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);