|
@@ -1951,6 +1951,11 @@ static void atmel_flush_buffer(struct uart_port *port)
|
|
atmel_uart_writel(port, ATMEL_PDC_TCR, 0);
|
|
atmel_uart_writel(port, ATMEL_PDC_TCR, 0);
|
|
atmel_port->pdc_tx.ofs = 0;
|
|
atmel_port->pdc_tx.ofs = 0;
|
|
}
|
|
}
|
|
|
|
+ /*
|
|
|
|
+ * in uart_flush_buffer(), the xmit circular buffer has just
|
|
|
|
+ * been cleared, so we have to reset tx_len accordingly.
|
|
|
|
+ */
|
|
|
|
+ atmel_port->tx_len = 0;
|
|
}
|
|
}
|
|
|
|
|
|
/*
|
|
/*
|