From owner-freebsd-hackers@FreeBSD.ORG Mon Jan 5 16:44:38 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 7BE5816A4CE for ; Mon, 5 Jan 2004 16:44:38 -0800 (PST) Received: from python.evilrealms.net (evilrealms.demon.co.uk [62.49.12.231]) by mx1.FreeBSD.org (Postfix) with ESMTP id A9E5443D39 for ; Mon, 5 Jan 2004 16:43:21 -0800 (PST) (envelope-from jay@evilrealms.net) Received: from evilrealms.net (viper.evilrealms.net [192.168.1.2]) by python.evilrealms.net (Postfix) with ESMTP id 521445C2F for ; Tue, 6 Jan 2004 00:43:09 +0000 (GMT) Message-ID: <3FFA04A8.30601@evilrealms.net> Date: Tue, 06 Jan 2004 00:43:20 +0000 From: Jay Cornwall User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-hackers@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Subject: 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: Tue, 06 Jan 2004 00:44:38 -0000 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. 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) 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? -- Cheers, Jay http://www.evilrealms.net/ - Systems Administrator & Developer http://www.imperial.ac.uk/ - 3rd year CS student