Skip to content

Commit

Permalink
serial: omap8250: Terminate rx dma only for flushes
Browse files Browse the repository at this point in the history
DMA completed normally does not require termination; only terminate
paused rx dma stemming from rx dma flush.

Signed-off-by: Peter Hurley <[email protected]>
Reviewed-by: Heikki Krogerus <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
  • Loading branch information
peterhurley authored and gregkh committed Apr 30, 2016
1 parent 33d9b8b commit d1f9815
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/tty/serial/8250/8250_omap.c
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,6 @@ static void __dma_rx_do_complete(struct uart_8250_port *p)

dma->rx_running = 0;
dmaengine_tx_status(dma->rxchan, dma->rx_cookie, &state);
dmaengine_terminate_all(dma->rxchan);

count = dma->rx_size - state.residue;

Expand Down Expand Up @@ -808,6 +807,7 @@ static void omap_8250_rx_dma_flush(struct uart_8250_port *p)
spin_unlock_irqrestore(&priv->rx_dma_lock, flags);

__dma_rx_do_complete(p);
dmaengine_terminate_all(dma->rxchan);
}

static int omap_8250_rx_dma(struct uart_8250_port *p)
Expand Down

0 comments on commit d1f9815

Please sign in to comment.