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)
commit030ee7ae52a46a2be52ccc8242c4a330aba8d38e
tree859037014f2994e463a04d6ed82abda0851c299c
parenta20047f36e2f6a1eea4f1fd261aaa55882369868
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: 664d5df92e88 ("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