mxs: uart: fix setting RTS from software
authorSteffen Trumtrar <s.trumtrar@pengutronix.de>
Thu, 13 Dec 2012 13:27:43 +0000 (14:27 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 16 Jan 2013 03:06:41 +0000 (19:06 -0800)
commita6833214cfc6fa8a7c59426af77794cc190c6cfc
tree77e17698e0107c6105a8b18ff3cdffe01afddcac
parent9931faca02c604c22335f5a935a501bb2ace6e20
mxs: uart: fix setting RTS from software

With the patch "serial: mxs-auart: fix the wrong RTS hardware flow control" the
mainline mxs-uart driver now sets RTSEN only when hardware flow control is
enabled via software. It is not possible any longer to set RTS manually via
software. However, the manual modification is a valid operation.
Regain the possibility to set RTS via software and only set RTSEN when hardware
flow control is explicitly enabled via settermios cflag CRTSCTS.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Huang Shijie <b32955@freescale.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/mxs-auart.c