Re: Patch for drivers/usb/serial/ch341.c enabling parity

Fabio Estevam
2017-04-03T00:14:07Z

On Sun, Apr 2, 2017 at 3:00 PM, Leif Neland <leif@neland.dk> wrote:
> There is a patch
>
> https://github.com/karlp/ch341-linux/blob/master/0001-usb-serial-ch341-Add-parity-support.patch
>
> which enables parity selection for the ch341 USB-RS485 adapter.
>
> From: Karl Palsson <karlp@tweak.net.au>
> Date: Tue, 18 Mar 2014 23:33:27 +0000
>
> This adapter is available for cheap on eBay.
>
> The patch made me able to use this adapter for polling my modbus
> power-meter with raspberry pi.
>
> Would it be possible to get this into the official distribution?

Kernel 4.10 has commit ba781bdf866 ("USB: serial: ch341: add support
for parity, frame length, stop bits") that adds parity support for
this driver.

Have you tried using 4.10.x?