]> git.karo-electronics.de Git - linux-beck.git/commit
serial: imx: fix throttle/unthrottle callbacks for hardware assisted flow control
authorFugang Duan <B38611@freescale.com>
Fri, 19 Sep 2014 07:26:40 +0000 (15:26 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 29 Sep 2014 01:26:38 +0000 (21:26 -0400)
commitbb2f861ad00fc09dab955d22280c51cead795bca
tree54ecf730dc299067a5c13d22f658549bc20325e7
parent1ede7dcca3c4fa15a518ab0473126f9c3e621e4c
serial: imx: fix throttle/unthrottle callbacks for hardware assisted flow control

when the 'CTSC' bit is negated. 'CTS' has no function when 'CTSC' is asserted.
0: The CTS pin is high (inactive)
1: The CTS pin is low (active)

For throttle, it needs to clear 'CTS' and 'CTSC' bits.
For unthrottle, it needs to enable 'CTS' and 'CTSC' bits.

The patch just fix the issue.

Signed-off-by: Fugang Duan <B38611@freescale.com>
Signed-off-by: Huang Shijie <shijie8@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/imx.c