Date: Mon, 3 Apr 2000 17:45:38 +0100 (BST) From: Nick Hibma <n_hibma@calcaphon.com> To: "Justin T. Gibbs" <gibbs@freebsd.org> Cc: Warner Losh <imp@village.org>, 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 Message-ID: <Pine.BSF.4.20.0004031741050.12550-100000@localhost> In-Reply-To: <200004031612.KAA17145@caspian.plutotech.com>
next in thread | previous in thread | raw e-mail | index | archive | help
> 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.BSF.4.20.0004031741050.12550-100000>