From owner-freebsd-usb@FreeBSD.ORG Thu Nov 25 15:55:39 2010 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 BC463106564A for ; Thu, 25 Nov 2010 15:55:39 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe08.c2i.net [212.247.154.226]) by mx1.freebsd.org (Postfix) with ESMTP id 4D8A88FC1A for ; Thu, 25 Nov 2010 15:55:38 +0000 (UTC) X-Cloudmark-Score: 0.000000 [] X-Cloudmark-Analysis: v=1.1 cv=4dE6tNKVm/0afO7MQGRPv7y2YwMo4emTIiDjbh74onY= c=1 sm=1 a=8nJEP1OIZ-IA:10 a=CL8lFSKtTFcA:10 a=i9M/sDlu2rpZ9XS819oYzg==:17 a=zVhf5b1Y-Qv6nhwp_NcA:9 a=I-2wTyi9SkPsPLmICI5X6ZSzRiAA:4 a=wPNLvfGTeEIA:10 a=BgdZMVEbE5UxzQAc:21 a=dLDjOws6hoXNPmAy:21 a=i9M/sDlu2rpZ9XS819oYzg==:117 Received: from [188.126.198.129] (account mc467741@c2i.net HELO laptop002.hselasky.homeunix.org) by mailfe08.swip.net (CommuniGate Pro SMTP 5.2.19) with ESMTPA id 54061225; Thu, 25 Nov 2010 16:55:37 +0100 From: Hans Petter Selasky To: ticso@cicely.de Date: Thu, 25 Nov 2010 16:56:22 +0100 User-Agent: KMail/1.13.5 (FreeBSD/8.1-STABLE; KDE/4.4.5; amd64; ; ) References: <20101125123018.GS62027@cicely7.cicely.de> <201011251437.31383.hselasky@c2i.net> <20101125155045.GW62027@cicely7.cicely.de> In-Reply-To: <20101125155045.GW62027@cicely7.cicely.de> X-Face: +~\`s("[*|O,="7?X@L.elg*F"OA\I/3%^p8g?ab%RN'(; _IjlA: hGE..Ew, XAQ*o#\/M~SC=S1-f9{EzRfT'|Hhll5Q]ha5Bt-s|oTlKMusi:1e[wJl}kd}GR Z0adGx-x_0zGbZj'e(Y[(UNle~)8CQWXW@:DX+9)_YlB[tIccCPN$7/L' MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201011251656.22246.hselasky@c2i.net> Cc: Bernd Walter , freebsd-usb@freebsd.org Subject: Re: selecting configuration 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: Thu, 25 Nov 2010 15:55:39 -0000 On Thursday 25 November 2010 16:50:46 Bernd Walter wrote: > On Thu, Nov 25, 2010 at 02:37:31PM +0100, Hans Petter Selasky wrote: > > On Thursday 25 November 2010 13:30:18 Bernd Walter wrote: > > > I have a USB device with two alternative configurations. > > > After enumerating the device I need to switch the device to > > > configuration 1 via usbconfig. > > > Do we have any kind of support to do this automatically? > > > > Yes, see the USB quirks. > > > > UQ_CFG_INDEX_1 Hi, > > Ok - this is something to be compiled into the kernel - right? > Is it possible to add a quirk with usbconfig after the device is > already detected? You can load the usb_quirk.ko. Plug the device and run: usbconfig -d x.y add_quirk At next plug the setting is remembered. > devd won't work since it won't say anything as config 0 won't > attach to any driver and ugen isn't listed there. > Also the devd data would be missing the bus number. --HPS