From owner-freebsd-hackers Mon Apr 3 2:29:22 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from anchor-post-31.mail.demon.net (anchor-post-31.mail.demon.net [194.217.242.89]) by hub.freebsd.org (Postfix) with ESMTP id 2627A37B577 for ; Mon, 3 Apr 2000 02:29:18 -0700 (PDT) (envelope-from n_hibma@calcaphon.com) Received: from calcaphon.demon.co.uk ([193.237.19.5] helo=bluebottle.qubesoft.com) by anchor-post-31.mail.demon.net with esmtp (Exim 2.12 #1) id 12c3AX-00092N-0V for freebsd-hackers@freebsd.org; Mon, 3 Apr 2000 10:29:14 +0100 Received: from henny.qubesoft.com (henny.qubesoft.com [192.168.1.5]) by bluebottle.qubesoft.com (8.9.3/8.9.1) with ESMTP id VAA21257; Sun, 2 Apr 2000 21:24:36 +0100 (BST) (envelope-from n_hibma@calcaphon.com) Date: Sun, 2 Apr 2000 21:19:41 +0100 (BST) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: Warner Losh Cc: Nikolai Saoukh , freebsd-hackers@freebsd.org Subject: Re: Reserving Resources In-Reply-To: <200003270518.WAA89979@harmony.village.org> 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 > In theory, if one matches with a -1 or smaller rather than 0, then it > will be detached on reprobe. Isn't that the case? On -newbus this issue has come up and the conclusion was that there is always some problem rearing its ugly head. On loading a new driver you would have to run a non-intrusive probe on the device (if at all possible, some USB devices won't let you do that), the driver needs to detach (if possible, what if they attached to a CAM SIM which you should not delete) and the new driver needs to attach and initialise the device (if possible, what about ISA cards that freeze if you treat them the wrong way?). The issue is pretty hairy and for now I think the solution is to make any stub use DEVICE_NOMATCH (see pci.c), which does not attach a driver to a device, just mentions it during boot. I have no idea however whether this can be done with the unknown driver Nick -- n_hibma@webweaving.org n_hibma@freebsd.org USB project http://www.etla.net/~n_hibma/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message