]> git.karo-electronics.de Git - linux-beck.git/commit
USB: serial: ch341: fix open and resume after B0
authorJohan Hovold <johan@kernel.org>
Fri, 6 Jan 2017 18:15:11 +0000 (19:15 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 9 Jan 2017 13:55:37 +0000 (14:55 +0100)
commita20047f36e2f6a1eea4f1fd261aaa55882369868
treecde5e83376e707d2a8952bf64584340efda3c8a0
parent4e2da44691cffbfffb1535f478d19bc2dca3e62b
USB: serial: ch341: fix open and resume after B0

The private baud_rate variable is used to configure the port at open and
reset-resume and must never be set to (and left at) zero or reset-resume
and all further open attempts will fail.

Fixes: aa91def41a7b ("USB: ch341: set tty baud speed according to tty
struct")
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