]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: cdc-acm: only raise DTR on transitions from B0
authorJohan Hovold <johan@kernel.org>
Wed, 5 Nov 2014 17:41:59 +0000 (18:41 +0100)
committerJiri Slaby <jslaby@suse.cz>
Thu, 13 Nov 2014 18:02:45 +0000 (19:02 +0100)
commitfca03f3238cc9221fd584f95db2172eb87af78f6
tree8d1e296acc4e067b966aa5e2793fc9b12e7e204f
parent4a776e6ac881c8bcbe48ba4e5b26c78384bd7ee6
USB: cdc-acm: only raise DTR on transitions from B0

commit 4473d054ceb572557954f9536731d39b20937b0c upstream.

Make sure to only raise DTR on transitions from B0 in set_termios.

Also allow set_termios to be called from open with a termios_old of
NULL. Note that DTR will not be raised prematurely in this case.

Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/class/cdc-acm.c