From owner-freebsd-hackers Mon Jan 8 4:13:17 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from anchor-post-30.mail.demon.net (anchor-post-30.mail.demon.net [194.217.242.88]) by hub.freebsd.org (Postfix) with ESMTP id F123837B400 for ; Mon, 8 Jan 2001 04:12:59 -0800 (PST) Received: from calcaphon.demon.co.uk ([193.237.19.5]) by anchor-post-30.mail.demon.net with esmtp (Exim 2.12 #1) id 14FbAY-000Hxw-0U; Mon, 8 Jan 2001 12:12:58 +0000 Received: from doug02.qubesoft.com (doug02.qubesoft.com [192.168.1.4]) by calcaphon.demon.co.uk (8.11.1/8.9.1) with ESMTP id f08CCp180475; Mon, 8 Jan 2001 12:12:51 GMT (envelope-from dfr@qubesoft.com) Date: Mon, 8 Jan 2001 12:12:51 +0000 (GMT) From: Doug Rabson To: Nick Hibma Cc: Jon Simola , FreeBSD Hackers Mailing List Subject: Re: Broken-by-design USB device? In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, 7 Jan 2001, Nick Hibma wrote: > > There is, I think, at least a bug in subr_bus.c that might cause this, > although, this is just a hunch. I've not been able to explain what's > happening yet. > > What is happening is that device_probe_child sets the device class, and > in case of an error unsets it. But in this case attach (instead of > probe) returns an error and hence the devclass _should_ be unset for > that device (it didn't have a devclass to start with) to force it back > to its virgin state, but isn't. > > If you could review his patch dfr, that would be appreciated. > > This is an issue in current as well. The patch looks good to me. -- Doug Rabson Mail: dfr@qubesoft.com Technical Director, Qube Software Ltd. Phone: +44 20 7431 9995 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message