]> git.baikalelectronics.ru Git - kernel.git/commit
USB: serial: ch341: fix modem-control and B0 handling
authorJohan Hovold <johan@kernel.org>
Fri, 6 Jan 2017 18:15:12 +0000 (19:15 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 9 Jan 2017 13:55:37 +0000 (14:55 +0100)
commit9e0f0f4bdc95e167a66d67c8bb56eedbddf6da89
tree859037014f2994e463a04d6ed82abda0851c299c
parent0c17fc3d95808b41b66ef86bce35c578ef170088
USB: serial: ch341: fix modem-control and B0 handling

The modem-control signals are managed by the tty-layer during open and
should not be asserted prematurely when set_termios is called from
driver open.

Also make sure that the signals are asserted only when changing speed
from B0.

Fixes: eb0df4e027fb ("USB: usb-serial ch341: support for DTR/RTS/CTS")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ch341.c