]> git.baikalelectronics.ru Git - kernel.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)
commit6da74e7b8534cb7f34e2ea38d8457d8b4eb87450
tree7279f4ff68826f49af3324aeea1071afd3065465
parent874258f9739feecf9e99a701cbd6d88f8dcd1d3e
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