android_kernel_xiaomi_sm8350/drivers/serial/cpm_uart
Russell King b129a8ccd5 [SERIAL] Clean up and fix tty transmission start/stoping
The start_tx and stop_tx methods were passed a flag to indicate
whether the start/stop was from the tty start/stop callbacks, and
some drivers used this flag to decide whether to ask the UART to
immediately stop transmission (where the UART supports such a
feature.)

There are other cases when we wish this to occur - when CTS is
lowered, or if we change from soft to hard flow control and CTS
is inactive.  In these cases, this flag was false, and we would
allow the transmitter to drain before stopping.

There is really only one case where we want to let the transmitter
drain before disabling, and that's when we run out of characters
to send.

Hence, re-jig the start_tx and stop_tx methods to eliminate this
flag, and introduce new functions for the special "disable and
allow transmitter to drain" case.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
2005-08-31 10:12:14 +01:00
..
cpm_uart_core.c [SERIAL] Clean up and fix tty transmission start/stoping 2005-08-31 10:12:14 +01:00
cpm_uart_cpm1.c [PATCH] cpm_uart: Fix dpram allocation and non-console uarts 2005-08-09 12:08:22 -07:00
cpm_uart_cpm1.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpm_uart_cpm2.c [PATCH] cpm_uart: Route SCC2 pins for the STx GP3 board 2005-06-21 18:46:23 -07:00
cpm_uart_cpm2.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
cpm_uart.h [PATCH] cpm_uart: Fix dpram allocation and non-console uarts 2005-08-09 12:08:22 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00