Re: ch341: support new device types (Was: Re: PROBLEM: ch341 module fails with EPROTO when I plug-in Arduino board)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Johan Hovold <johan@xxxxxxxxxx> wrote:
> On Mon, Jul 06, 2015 at 03:24:17PM +0200, Peter Stuge wrote:
> 
> > Unrelated, but I also have some ch341 hardware, and mine does not
> > work with the mainline driver, it does however work reliably with the
> > vendor driver.
> > 
> > The two drivers initialize the hardware fairly differently,
> > especially the baudrate generator, and the mainline driver doesn't
> > support all control signals and modes.
> > 
> > A few things are obvious and easy for me to fix and post, but I'm not
> > sure how to proceed with the more complicated things; the baudrate
> > seems to have two settings, one clock divisor set on init and another
> > set depending on the selected baudrate. Mainline uses a different
> > algorithm to set these than the vendor driver.
> > 
> > I notice that my hardware version is more recent than the mainline
> > driver was written for. I also notice that my hardware does not
> > respond according to the expectations documented in mainline
> > comments.
> > 
> > 
> > Your thoughts? I know that another person was also working on this.
> 
> It should be possible to detect what version of the hardware is being
> used and switch baudrate-configuration scheme accordingly if necessary.
> Does anyone know how the vendor driver works with older devices?
> 
> I've added Karl on CC who I think have been working on getting these new
> devices supported as well.

"working on it" is perhaps a very generous way of describing it.  It's one of many projects, and it's not very often on the top of the pile.  My last work is here  https://github.com/karlp/linux/tree/ch341-3.18.6  and included some work on reading out the baud rate.  It also supports the reopening problems but it's not ready for submission.

I can test out some fixes, but it's simply not a priority for me right
now unfortunately.

one day, one day...

Sincerely,
Karl Palsson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)

iQIcBAEBAgAGBQJVm7KIAAoJEBmotQ/U1cr2OH8P/A8/tWWNCRz6fgUtPxbmM73/
D272u1kTBC26PwOEN0Eb9gCAXEDk6xb7+1GcKTSzZ7v2LyAV9EbC/rfUw04+omLB
F/hzNEB8h6xDIZN1Pe/3jOeZlYJxhflz/Uh1+TN7In5mr73ePhe8mrGX8UF5fTMF
1LkxExLUnVeQwGYQ9ud6EbI/mtrykz+HjsAFGpX7sDBqnlUasLU2+jDHM1nUYjp2
HXsWFlCt4/tIRUduxZiiLT0BabDCDcdlmWtu3Yd6O07GrZmfB87bvA6tH9iIMMQL
Ib3AxTQwb9MB+uu7zT4OBIr0c+nkhIDsMkGb30MxPcP/1CJ4ROwPHWDfJrh9vs0J
+bJW3M+pgPlS2oCXY8lZCcRxf0tcDGgHp/MDzmDavPA07jPlin7NyTNvFjcfDHJw
MO86fDImwjmokC3BesRDNUkdbX8+uh1aYTxmrLhDJxMXJ9RbF954QS1Ol6BebDqD
ky0MUJTepY95mb8p760erwZUWmNIJID8/ypvxKOUB2h/uvVhrMITWgr/K5dS9guj
i5AeJySNrs3GAM5a/RXRV6cgSQeF3cjSqD4gH9/uASz1jaAYlQLIdQyZVwlbrC6d
4TnQu+k0uZAcOJNUmKDOfr3zrlMeU2y6OMJE8NDrSx5OBzp/FJmrX9F7OHx0Yc8r
fZiL3bdtS6AIdMs1ZfLo
=iQyG
-----END PGP SIGNATURE-----

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux