Commit 1a060592 authored by Russell King's avatar Russell King

[SERIAL] Add comment about frobbing the 950's ACR on TX disable.

Add a bit of explaination why we only turn off the transmitter if
we are called from uart_stop().
parent dad3cfbd
......@@ -908,6 +908,12 @@ static void serial8250_stop_tx(struct uart_port *port, unsigned int tty_stop)
up->ier &= ~UART_IER_THRI;
serial_out(up, UART_IER, up->ier);
}
/*
* We only do this from uart_stop - if we run out of
* characters to send, we don't want to prevent the
* FIFO from emptying.
*/
if (up->port.type == PORT_16C950 && tty_stop) {
up->acr |= UART_ACR_TXDIS;
serial_icr_write(up, UART_ACR, up->acr);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment