Date: Wed, 9 Nov 2011 10:13:38 +0100 From: Hans Petter Selasky <hselasky@c2i.net> To: freebsd-usb@freebsd.org, JD Louw <jdl.ntq@gmail.com> Subject: Re: usb/162307: [uslcom][patch] cp2103 usb-to-serial driver does not support modem control lines Message-ID: <201111091013.38388.hselasky@c2i.net> In-Reply-To: <201111090900.pA990Wns094378@freefall.freebsd.org> References: <201111090900.pA990Wns094378@freefall.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wednesday 09 November 2011 10:00:32 JD Louw wrote: > The following reply was made to PR usb/162307; it has been noted by GNATS. > > From: JD Louw <jdl.ntq@gmail.com> > To: bug-followup@FreeBSD.org, jl@nanoteq.com > Cc: > Subject: Re: usb/162307: [uslcom][patch] cp2103 usb-to-serial driver does > not support modem control lines > Date: Wed, 9 Nov 2011 10:33:47 +0200 > > --bcaec544f0ae90b72e04b14925bc > Content-Type: multipart/alternative; boundary=bcaec544f0ae90b72b04b14925ba > > --bcaec544f0ae90b72b04b14925ba > Content-Type: text/plain; charset=ISO-8859-1 > > Tested OK. > > Recently I came across new app note (AN571) on SiLabs's website, > describing the cp210x registers in detail. Attached is another minor patch > with some further cleanups: > > 1) Use interface no 0 (wIndex field) for all control transfers > 2) Remove reserved mask on flow control. > > I plan on adding GPIO support later on. Should I add this as a custom > IOCTL? Hi, Modem drivers can have custom IOCTL's. Try to look at other modem drivers, if they already have something like that. Else you need to define your own ioctl file, which you can put in /sys/dev/usb/ which is then automagically exported to userspace. Patch committed: http://svn.freebsd.org/changeset/base/227383 --HPS
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201111091013.38388.hselasky>