From owner-freebsd-usb@FreeBSD.ORG Wed Nov 9 09:16:36 2011 Return-Path: Delivered-To: freebsd-usb@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 05E811065679 for ; Wed, 9 Nov 2011 09:16:36 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe05.c2i.net [212.247.154.130]) by mx1.freebsd.org (Postfix) with ESMTP id 8829A8FC20 for ; Wed, 9 Nov 2011 09:16:35 +0000 (UTC) X-T2-Spam-Status: No, hits=-0.2 required=5.0 tests=ALL_TRUSTED, BAYES_50 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe05.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 199528387; Wed, 09 Nov 2011 10:16:33 +0100 From: Hans Petter Selasky To: freebsd-usb@freebsd.org, JD Louw Date: Wed, 9 Nov 2011 10:13:38 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.2-STABLE; KDE/4.4.5; amd64; ; ) References: <201111090900.pA990Wns094378@freefall.freebsd.org> In-Reply-To: <201111090900.pA990Wns094378@freefall.freebsd.org> X-Face: *nPdTl_}RuAI6^PVpA02T?$%Xa^>@hE0uyUIoiha$pC:9TVgl.Oq, NwSZ4V"|LR.+tj}g5 %V,x^qOs~mnU3]Gn; cQLv&.N>TrxmSFf+p6(30a/{)KUU!s}w\IhQBj}[g}bj0I3^glmC( :AuzV9:.hESm-x4h240C`9=w MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201111091013.38388.hselasky@c2i.net> Cc: Subject: Re: usb/162307: [uslcom][patch] cp2103 usb-to-serial driver does not support modem control lines X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: FreeBSD support for USB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Nov 2011 09:16:36 -0000 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 > 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