USB: serial: cp210x: fix hardware flow-control disable
authorKonstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
Wed, 4 May 2016 21:56:52 +0000 (16:56 -0500)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Feb 2017 22:33:08 +0000 (23:33 +0100)
commit98e0190b97f01c1a2c6b0a06882e1423218d2b19
treee4eafd6980fe70c786fe948f41dfb5c292ad0c2d
parente51960fc4ac954d12a2fffd0f27bc3c2dd5bfd2a
USB: serial: cp210x: fix hardware flow-control disable

commit a377f9e906af4df9071ba8ddba60188cb4013d93 upstream.

A bug in the CRTSCTS handling caused RTS to alternate between

CRTSCTS=0 => "RTS is transmit active signal" and
CRTSCTS=1 => "RTS is used for receive flow control"

instead of

CRTSCTS=0 => "RTS is statically active" and
CRTSCTS=1 => "RTS is used for receive flow control"

This only happened after first having enabled CRTSCTS.

Signed-off-by: Konstantin Shkolnyy <konstantin.shkolnyy@gmail.com>
Fixes: 39a66b8d22a3 ("[PATCH] USB: CP2101 Add support for flow control")
[johan: reword commit message ]
Signed-off-by: Johan Hovold <johan@kernel.org>
[johan: backport to 4.4 ]
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Willy Tarreau <w@1wt.eu>
drivers/usb/serial/cp210x.c