]> git.itanic.dy.fi Git - linux-stable/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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 19 Jan 2017 19:18:04 +0000 (20:18 +0100)
commit2f946414a080e8f516d267a6722f38104699efd1
tree3a61317ba3b82c787fc078aa4ffa515ee16c62da
parent12a26bd342b5828b87e098291d17f9a188a0e7e6
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