usb/serial/ch341: Add parity support
authorKarl Palsson <karlp@tweak.net.au>
Tue, 18 Mar 2014 23:33:27 +0000 (23:33 +0000)
committerRaspbian kernel package updater <root@raspbian.org>
Sun, 8 Oct 2017 01:08:08 +0000 (01:08 +0000)
commit7b7f9931b059ceefb35dff0c13e59eaadb843425
tree81f91f4da4a66b7fc82669bce27267ffafb4f8e1
parent3345c7fa0711201fb27842a4d77c91b49ba9be29
usb/serial/ch341: Add parity support

Based on wireshark packet traces from a windows machine.

ch340 and ch341 both seem to support all parity modes, but only the ch341
appears to support variable data bits and variable stop bits, so those are left
unimplemented, as before.

Tested on a generic usb-rs485 dongle with the chip label scratched off, and
some Modbus/RTU devices that required various parity settings.

Signed-off-by: Karl Palsson <karlp@tweak.net.au>
drivers/usb/serial/ch341.c