]> asedeno.scripts.mit.edu Git - linux.git/commit
USB: serial: ch341: add support for parity, frame length, stop bits
authorAidan Thornton <makosoft@gmail.com>
Sat, 22 Oct 2016 21:02:25 +0000 (22:02 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 24 Oct 2016 15:41:25 +0000 (17:41 +0200)
commitba781bdf86621b71aa79a1ac0ad584f1e8aac307
tree7279f4ff68826f49af3324aeea1071afd3065465
parent4e46c410e050bcac36deadbd8e20449d078204e8
USB: serial: ch341: add support for parity, frame length, stop bits

With the new reinitialization method, configuring parity, different
frame lengths and different stop bit settings should work as expected
on both CH340G and CH341A. Tested on a loopback-connected CH340G
with a logic analyzer in a number of different configurations.

Based on a patch by Grigori Goronzy

Signed-off-by: Aidan Thornton <makosoft@gmail.com>
Reviewed-by: Grigori Goronzy <greg@chown.ath.cx>
Signed-off-by: Johan Hovold <johan@kernel.org>
drivers/usb/serial/ch341.c