]> git.baikalelectronics.ru Git - kernel.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)
commit8b3d0b450bb63444d089b3218a64810957e14a78
treecde5e83376e707d2a8952bf64584340efda3c8a0
parent3f6b2724a45d4ae78206710a5efcde8fb30c0b87
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: 45b4e389ce1e ("USB: ch341: set tty baud speed according to tty
struct")
Fixes: eb0df4e027fb ("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