Skip to content

Commit 49433c8

Browse files
jonhuntergregkh
authored andcommitted
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 <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 0b0c1bd commit 49433c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/serial-tegra.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -410,7 +410,7 @@ static void tegra_uart_tx_dma_complete(void *args)
410410
unsigned long flags;
411411
unsigned int count;
412412

413-
dmaengine_tx_status(tup->tx_dma_chan, tup->rx_cookie, &state);
413+
dmaengine_tx_status(tup->tx_dma_chan, tup->tx_cookie, &state);
414414
count = tup->tx_bytes_requested - state.residue;
415415
async_tx_ack(tup->tx_dma_desc);
416416
spin_lock_irqsave(&tup->uport.lock, flags);

0 commit comments

Comments
 (0)