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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:17:21 +0000 (20:17 +0100)
commit0cf23324af1c318c87fb2ea98be2443bc6a80835
tree42e40d158c415f09be12e74dc5ff4ba28ee4682d
parent1d25a05642c8f69d0a31a40b8f2ac3189bf5dcb7
USB: serial: ch341: fix modem-control and B0 handling

commit 030ee7ae52a46a2be52ccc8242c4a330aba8d38e upstream.

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")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/ch341.c