From owner-freebsd-current@FreeBSD.ORG Sat Dec 27 22:59:29 2008 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0BAAC1065678 for ; Sat, 27 Dec 2008 22:59:29 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from ebb.errno.com (ebb.errno.com [69.12.149.25]) by mx1.freebsd.org (Postfix) with ESMTP id BA1BD8FC22 for ; Sat, 27 Dec 2008 22:59:28 +0000 (UTC) (envelope-from sam@freebsd.org) Received: from trouble.errno.com (trouble.errno.com [10.0.0.248]) (authenticated bits=0) by ebb.errno.com (8.13.6/8.12.6) with ESMTP id mBRMxOli091500 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Sat, 27 Dec 2008 14:59:25 -0800 (PST) (envelope-from sam@freebsd.org) Message-ID: <4956B34C.2040901@freebsd.org> Date: Sat, 27 Dec 2008 14:59:24 -0800 From: Sam Leffler Organization: FreeBSD Project User-Agent: Thunderbird 2.0.0.18 (X11/20081209) MIME-Version: 1.0 To: Hans Petter Selasky References: <20081222214010.GA18389@elvis.mu.org> <495606B9.10406@bsdforen.de> <200812271234.37581.hselasky@c2i.net> In-Reply-To: <200812271234.37581.hselasky@c2i.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-DCC-sonic.net-Metrics: ebb.errno.com; whitelist Cc: freebsd-current@freebsd.org Subject: Re: HEADSUP usb2 (usb4bsd) to become default in 2 weeks. [usb2 configuration] X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Dec 2008 22:59:29 -0000 Hans Petter Selasky wrote: > On Saturday 27 December 2008, Dominic Fandrey wrote: > >> Alfred Perlstein wrote: >> >>> We're going to usher in the New Year with a new usb stack. >>> >>> Now is the time to test, test, test. >>> >>> It is also the time to point out anything missing from usb2 that >>> is in usb1. ... >>> >>> See attachment. >>> ... >>> >>> >>> # USB Serial devices >>> -device ucom # Generic com ttys >>> -device u3g # USB-based 3G modems (Option, Huawei, Sierra) >>> ... >>> >> It seems u3g doesn't show up in the usb2 stuff. For me >> this would be a real show stopper if I ran current. >> >> > > The U3G driver has been ported to USB2. See "usb2_serial_3g". > > I think this sort of confusion is indicative of problems with the way usb2 is configured. I recently switched a machine to usb2 and I naively expected that doing this would just involve changing all items like device ums to device ums2 when this didn't work I looked for manual pages but found none. So then I looked in sys/conf/files and found that every driver has a new name; e.g. to get ums I now have to specify: device usb2_input_ms but more than that I also have to include device usb2_input device usb2_core I suggest this is not a good idea. It is possible through module dependencies and config rules in files to handle all this automatically. Perhaps I've missed something here but I think that after the switchover users should not need to alter their config files unless they are using new features. This is all the more important in that all these names changes will require all documentation to be altered to match. Separately I noticed the sys/modules/usb2 does not have a directory hierarchy that paralells sys/dev/usb2. I think you should reorganize the modules to be consistent w/ existing conventions (e.g. have sys/modules/ural2 or sys/modules/usb2/wlan/ral). Sam