Skip to content

Commit fb7f1bf

Browse files
Robin Gonggregkh
authored andcommitted
tty: serial: imx: correct dma cookie status
Correct to check the right rx dma cookie status in spit of it works because only one cookie is running in the current sdma. But it will not once sdma driver support multi cookies running based on virt-dma. Signed-off-by: Robin Gong <[email protected]> Reviewed-by: Sascha Hauer <[email protected]> Acked-by: Uwe Kleine-König <[email protected]> Tested-by: Lucas Stach <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent e51e597 commit fb7f1bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/tty/serial/imx.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,7 +1052,7 @@ static void imx_uart_dma_rx_callback(void *data)
10521052
unsigned int r_bytes;
10531053
unsigned int bd_size;
10541054

1055-
status = dmaengine_tx_status(chan, (dma_cookie_t)0, &state);
1055+
status = dmaengine_tx_status(chan, sport->rx_cookie, &state);
10561056

10571057
if (status == DMA_ERROR) {
10581058
imx_uart_clear_rx_errors(sport);

0 commit comments

Comments
 (0)