• W
    USB: usb-serial ch341: support for DTR/RTS/CTS · f4c1a837
    Werner Cornelius 提交于
    commit 664d5df9 upstream.
    
    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>
    
    based on a patch by:
    
    	From: Tollef Fog Heen <tfheen@err.no>
    
    	* Implement support for all baud rates rather than just a hard
    	  coded set.
    	* Make it possible to control status and control lines
    	* Grab a bunch of #defines from FreeBSD to reduce the number of
    	  magic numbers in the file
    Signed-off-by: NWerner Cornelius <Werner.Cornelius@cornelius-consult.de>
    Signed-off-by: NBoris Hajduk <boris@hajduk.org>
    Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>
    Signed-off-by: NTollef Fog Heen <tfheen@err.no>
    Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
    f4c1a837
ch341.c 14.9 KB