From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 6 21:36:10 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A718F16A4CE for ; Tue, 6 Jan 2004 21:36:10 -0800 (PST) Received: from smtp1.adl2.internode.on.net (smtp1.adl2.internode.on.net [203.16.214.181]) by mx1.FreeBSD.org (Postfix) with ESMTP id B869A43D46 for ; Tue, 6 Jan 2004 21:36:08 -0800 (PST) (envelope-from doconnor@gsoft.com.au) Received: from midget.dons.net.au (ppp108-195.lns1.adl1.internode.on.net [150.101.108.195])i075ZJRp068947; Wed, 7 Jan 2004 16:05:20 +1030 (CST) Received: from chowder.gsoft.com.au (root@localhost.dons.net.au [127.0.0.1]) by midget.dons.net.au (8.12.9/8.12.9) with ESMTP id i075ZGaW090254; Wed, 7 Jan 2004 16:05:17 +1030 (CST) (envelope-from doconnor@gsoft.com.au) From: "Daniel O'Connor" To: ticso@cicely.de, Bernd Walter , Jay Cornwall Date: Wed, 7 Jan 2004 16:05:15 +1030 User-Agent: KMail/1.5.4 References: <3FFA04A8.30601@evilrealms.net> <20040106081714.GH39786@cicely12.cicely.de> In-Reply-To: <20040106081714.GH39786@cicely12.cicely.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200401071605.15740.doconnor@gsoft.com.au> X-Spam-Score: -4.7 () IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES,SIGNATURE_SHORT_DENSE,SPAM_PHRASE_03_05,USER_AGENT,USER_AGENT_KMAIL X-Scanned-By: MIMEDefang 2.26 (www . roaringpenguin . com / mimedefang) cc: freebsd-hackers@freebsd.org Subject: Re: USB stack / configuration 0 X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2004 05:36:10 -0000 On Tuesday 06 January 2004 18:47, Bernd Walter wrote: > > When setting a USB device to configuration number USB_UNCONFIG_NO (i.e. > > 0), the device goes into an unconfigured state with an invalid > > dev->cdesc. How does one then leave this unconfigured state and > > reconfigure the device to accept configuration changes? (all > > USB_SET_CONFIG changes are currently refused after going into > > configuration 0 - I'm not sure if this is the desired behaviour or a bug) > > I have to read the docs first bevor making a qualified comment about > this. I'm not 100% sure if this applies, but.. There are certainly situations where you want to reenumerate the USB devices, for example there are a number of devices which have no real firmware - they expect to be programmed by the PC then reset and reenumerated after being plugged in. I have such a device (M-Audio Mobile Pre USB) and I have modified USB audio code which works except that you need to manually reset the device without removing power (which is done by partially removing and then reinserting the USB connector). -- Daniel O'Connor software and network engineer for Genesis Software - http://www.gsoft.com.au "The nice thing about standards is that there are so many of them to choose from." -- Andrew Tanenbaum GPG Fingerprint - 9A8C 569F 685A D928 5140 AE4B 319B 41F4 5D17 FDD5