serial: blackfin: Fix CTS flow control
authorPeter Hurley <peter@hurleysoftware.com>
Mon, 16 Jun 2014 13:17:10 +0000 (09:17 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 10 Jul 2014 23:07:46 +0000 (16:07 -0700)
commit8bd67d7d2cbcea2a2371480fe3fe47f2bcd0294c
tree0d3798ff3e7e7fb0ba7f77ff1a7d7a412c06467a
parentc18b55fd1717a4c08c9f3555be63da142767e6b8
serial: blackfin: Fix CTS flow control

blackfin uart port drivers mistakenly set the struct uart_port
flags bit UPF_BUG_THRE (which only has meaning to the 8250 core)
while trying to set ASYNC_CTS_FLOW.

Uart port drivers can override termios settings based on actual
hardware support in their .set_termios method; the serial core
sets the appropriate port flags based on the overrides.
Overriding only the initial termios settings is accomplished
by only perform those overrides if the old termios parameter is
NULL.

CC: Sonic Zhang <sonic.zhang@analog.com>
CC: adi-buildroot-devel@lists.sourceforge.net
Signed-off-by: Peter Hurley <peter@hurleysoftware.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/bfin_sport_uart.c
drivers/tty/serial/bfin_uart.c