From owner-freebsd-hackers@FreeBSD.ORG Tue Jan 6 00:17:57 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 6EAEF16A4CE for ; Tue, 6 Jan 2004 00:17:57 -0800 (PST) Received: from srv1.cosmo-project.de (srv1.cosmo-project.de [213.83.6.106]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3981443D1F for ; Tue, 6 Jan 2004 00:17:55 -0800 (PST) (envelope-from ticso@cicely12.cicely.de) Received: from cicely5.cicely.de (cicely5.cicely.de [IPv6:3ffe:400:8d0:301:200:92ff:fe9b:20e7]) (authenticated bits=0) i068HSN1076467 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 6 Jan 2004 09:17:31 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (cicely12.cicely.de [IPv6:3ffe:400:8d0:301::12]) by cicely5.cicely.de (8.12.10/8.12.10) with ESMTP id i068HKMO091152 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 6 Jan 2004 09:17:21 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: from cicely12.cicely.de (localhost [127.0.0.1]) by cicely12.cicely.de (8.12.10/8.12.10) with ESMTP id i068HKBE041807; Tue, 6 Jan 2004 09:17:20 +0100 (CET) (envelope-from ticso@cicely12.cicely.de) Received: (from ticso@localhost) by cicely12.cicely.de (8.12.10/8.12.10/Submit) id i068HFLY041806; Tue, 6 Jan 2004 09:17:15 +0100 (CET) (envelope-from ticso) Date: Tue, 6 Jan 2004 09:17:14 +0100 From: Bernd Walter To: Jay Cornwall Message-ID: <20040106081714.GH39786@cicely12.cicely.de> References: <3FFA04A8.30601@evilrealms.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3FFA04A8.30601@evilrealms.net> X-Operating-System: FreeBSD cicely12.cicely.de 5.2-CURRENT alpha User-Agent: Mutt/1.5.4i X-Spam-Status: No, hits=-4.9 required=3.0 tests=BAYES_00 autolearn=ham version=2.61 X-Spam-Report: * -4.9 BAYES_00 BODY: Bayesian spam probability is 0 to 1% * [score: 0.0000] X-Spam-Checker-Version: SpamAssassin 2.61 (1.212.2.1-2003-12-09-exp) on cicely5.cicely.de 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 Reply-To: ticso@cicely.de List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 06 Jan 2004 08:17:57 -0000 On Tue, Jan 06, 2004 at 12:43:20AM +0000, Jay Cornwall wrote: > Hi > > I've just finished a patch to alleviate several panics in the ugen driver > (related to devfs issues and setting a USB device's configuration to > USB_UNCONFIG_NO). I'm about to submit to freebsd-current@, but I need to > clarify something first. Sounds great! > 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. > All I can think of is unplugging/plugging the device back in. In which > case, why would we want to let users set USB_UNCONFIG_NO in the first place? You can always reset the hub port. Nevertheless USB_UNCONFIG_NO shouldn't be allowed IMO - it can easily happen by accident. -- B.Walter BWCT http://www.bwct.de ticso@bwct.de info@bwct.de