]> git.baikalelectronics.ru Git - kernel.git/commit
USB: usb-serial ch341: support for DTR/RTS/CTS
authorWerner Cornelius <werner@cornelius-consult.de>
Fri, 16 Jan 2009 20:02:41 +0000 (21:02 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 24 Mar 2009 23:20:28 +0000 (16:20 -0700)
commiteb0df4e027fb944f22d2070cbf884c1ded74d53c
tree108ad804c5212455ae2e1e028db056e7bf6cf20f
parent6ff593e0e9b75e1f6f67a0a9da3c87a88cdf4339
USB: usb-serial ch341: support for DTR/RTS/CTS

Fixup of Werner Cornelius patch to the ch341 USB-serial driver, which adds:
- support all baudrates, not just a hard-coded set
- support for controlling DTR, RTS and CTS

Features still missing:
- character length other than 8 bits
- parity settings
- break control

I adapted his patch for the new usb_serial API introduced in 2.6.25-git8 by
Alan Cox on 22 July 2008. Non-compliance to the new API was a reason for
refusing a similar patch from Tollef Fog Heen.

Usage example by Tollef Fog Heen :
        TEMPer USB thermometer <http://err.no/src/TEMPer.c>

Signed-off-by: Werner Cornelius <Werner.Cornelius@cornelius-consult.de>
Signed-off-by: Boris Hajduk <boris@hajduk.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/ch341.c