]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd638e5557e598a43c50031727f389d19f04a6195
tree0d3798ff3e7e7fb0ba7f77ff1a7d7a412c06467a
parent0d396936bf1f6a486fdaa5e4b4bc7eaab2b03f50
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