Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 25 Nov 2010 16:56:22 +0100
From:      Hans Petter Selasky <hselasky@c2i.net>
To:        ticso@cicely.de
Cc:        Bernd Walter <ticso@cicely7.cicely.de>, freebsd-usb@freebsd.org
Subject:   Re: selecting configuration
Message-ID:  <201011251656.22246.hselasky@c2i.net>
In-Reply-To: <20101125155045.GW62027@cicely7.cicely.de>
References:  <20101125123018.GS62027@cicely7.cicely.de> <201011251437.31383.hselasky@c2i.net> <20101125155045.GW62027@cicely7.cicely.de>

next in thread | previous in thread | raw e-mail | index | archive | help
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 <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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201011251656.22246.hselasky>