/* Flush any TX data submitted for DMA. Called when the TX circular buffer is reset.  */
static void atmel_flush_buffer(struct uart_port *port)
/* Flush any TX data submitted for DMA. Called when the TX circular buffer is reset.  */
static void atmel_flush_buffer(struct uart_port *port)
{
	struct atmel_uart_port *atmel_port = to_atmel_uart_port(port);
	if (atmel_use_dma_tx(port)) {
		UART_PUT_TCR(port, 0);
		atmel_port->pdc_tx.ofs = 0;
	}
}