From owner-cvs-all Mon Apr 3 9:51: 1 2000 Delivered-To: cvs-all@freebsd.org Received: from finch-post-12.mail.demon.net (finch-post-12.mail.demon.net [194.217.242.41]) by hub.freebsd.org (Postfix) with ESMTP id A0B1A37B8B3; Mon, 3 Apr 2000 09:50:51 -0700 (PDT) (envelope-from n_hibma@calcaphon.com) Received: from calcaphon.demon.co.uk ([193.237.19.5] helo=bluebottle.qubesoft.com) by finch-post-12.mail.demon.net with esmtp (Exim 2.12 #1) id 12cA2c-000Myd-0C; Mon, 3 Apr 2000 16:49:34 +0000 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 RAA01492; Mon, 3 Apr 2000 17:50:43 +0100 (BST) (envelope-from n_hibma@calcaphon.com) Date: Mon, 3 Apr 2000 17:45:38 +0100 (BST) From: Nick Hibma X-Sender: n_hibma@localhost Reply-To: Nick Hibma To: "Justin T. Gibbs" Cc: Warner Losh , cvs-committers@freebsd.org, cvs-all@freebsd.org Subject: Re: cvs commit: src/sys/cam cam_periph.h cam_xpt.c src/sys/dev/usb umass.c In-Reply-To: <200004031612.KAA17145@caspian.plutotech.com> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > There are two issues here. One is a bus that can detect when a > sub-device goes away (e.g. Fiber Channel, SPI-SCAM). This should > be handled by CAM3's auto-discovery mechanism which we have yet to > implement. The second is for a SIM that arrives/departs dynamically. > It should be trivial to have a bus rescan occur when a SIM registers > a new bus (a few lines in xpt_bus_register??). The umass driver has > taken the first approach which is why Nick ran into trouble. The reason why all the USB devices are registered at one bus is because xpt_deregister_bus made my system unstable. Having one bus, and never unload the driver is the only I could do. The problem solved with that commit has nothing to do with the peripheral arrival or removal. Removal can be implemented in four lines, by sending an asynchronous AC_DEVICE_LOST event, and is trivial. Device arrival is what I added in my commit. This is not done by any other driver yet. This commit should be applicable to hot pluggable drive arrays (non-RAID, just a bunch of disks). 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 cvs-all" in the body of the message