From owner-freebsd-usb@FreeBSD.ORG Thu Nov 25 15:51:03 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 96E13106566C for ; Thu, 25 Nov 2010 15:51:03 +0000 (UTC) (envelope-from ticso@cicely7.cicely.de) Received: from raven.bwct.de (raven.bwct.de [85.159.14.73]) by mx1.freebsd.org (Postfix) with ESMTP id 226B78FC0C for ; Thu, 25 Nov 2010 15:51:02 +0000 (UTC) Received: from mail.cicely.de ([10.1.1.37]) by raven.bwct.de (8.13.4/8.13.4) with ESMTP id oAPFp6PD084964 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 25 Nov 2010 16:51:06 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (cicely7.cicely.de [10.1.1.9]) by mail.cicely.de (8.14.4/8.14.4) with ESMTP id oAPFokUQ035169 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Thu, 25 Nov 2010 16:50:46 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: from cicely7.cicely.de (localhost [127.0.0.1]) by cicely7.cicely.de (8.14.2/8.14.2) with ESMTP id oAPFokim074991; Thu, 25 Nov 2010 16:50:46 +0100 (CET) (envelope-from ticso@cicely7.cicely.de) Received: (from ticso@localhost) by cicely7.cicely.de (8.14.2/8.14.2/Submit) id oAPFokvc074990; Thu, 25 Nov 2010 16:50:46 +0100 (CET) (envelope-from ticso) Date: Thu, 25 Nov 2010 16:50:46 +0100 From: Bernd Walter To: Hans Petter Selasky Message-ID: <20101125155045.GW62027@cicely7.cicely.de> References: <20101125123018.GS62027@cicely7.cicely.de> <201011251437.31383.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201011251437.31383.hselasky@c2i.net> X-Operating-System: FreeBSD cicely7.cicely.de 7.0-STABLE i386 User-Agent: Mutt/1.5.11 X-Spam-Status: No, score=-2.9 required=5.0 tests=ALL_TRUSTED=-1, BAYES_00=-1.9, T_RP_MATCHES_RCVD=-0.01 autolearn=unavailable version=3.3.0 X-Spam-Checker-Version: SpamAssassin 3.3.0 (2010-01-18) on spamd.cicely.de Cc: Bernd Walter , ticso@cicely.de, freebsd-usb@freebsd.org Subject: Re: selecting configuration X-BeenThere: freebsd-usb@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: ticso@cicely.de 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:51:03 -0000 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 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? 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. -- B.Walter http://www.bwct.de Modbus/TCP Ethernet I/O Baugruppen, ARM basierte FreeBSD Rechner uvm.