USB: serial: cp210x: re-enable auto-RTS on open
authorBrant Merryman <brant.merryman@silabs.com>
Fri, 26 Jun 2020 04:24:20 +0000 (04:24 +0000)
committerJohan Hovold <johan@kernel.org>
Mon, 6 Jul 2020 10:03:59 +0000 (12:03 +0200)
commitc7614ff9b73a1e6fb2b1b51396da132ed22fecdb
tree7a0848af7c31f9211b6c4e1bcd036331740fe036
parent4387b3dbb079d482d3c2b43a703ceed4dd27ed28
USB: serial: cp210x: re-enable auto-RTS on open

CP210x hardware disables auto-RTS but leaves auto-CTS when in hardware
flow control mode and UART on cp210x hardware is disabled. When
re-opening the port, if auto-CTS is enabled on the cp210x, then auto-RTS
must be re-enabled in the driver.

Signed-off-by: Brant Merryman <brant.merryman@silabs.com>
Co-developed-by: Phu Luu <phu.luu@silabs.com>
Signed-off-by: Phu Luu <phu.luu@silabs.com>
Link: https://lore.kernel.org/r/ECCF8E73-91F3-4080-BE17-1714BC8818FB@silabs.com
[ johan: fix up tags and problem description ]
Fixes: 39a66b8d22a3 ("[PATCH] USB: CP2101 Add support for flow control")
Cc: stable <stable@vger.kernel.org> # 2.6.12
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/cp210x.c