From mboxrd@z Thu Jan 1 00:00:00 1970 From: Oliver Neukum Date: Mon, 17 Mar 2003 20:44:23 +0000 Subject: Re: hotpluggable ide cd-rom drive? Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable To: linux-hotplug@vger.kernel.org Am Montag, 17. M=E4rz 2003 20:09 schrieb Greg KH: > On Mon, Mar 17, 2003 at 08:05:21PM +0100, Oliver Neukum wrote: > > Am Montag, 17. M=E4rz 2003 18:50 schrieb Greg KH: > > > On Mon, Mar 17, 2003 at 06:56:28AM -0600, Kari Karhi wrote: > > > > Is there a user level command to kick the ide-probe module into > > > > probing the ide bus again? Or is work going on to get the kernel to > > > > support hot-pluggable ide drives? Or am I just missing some > > > > configuration parameter? > > > > > > Unfortunately this is usually done in a hardware specific way, and > > > since neither Dell, nor any other laptop manufacturer has provided the > > > specs for how to detect and do this kind of hot-swap, Linux does not > > > support it. > > > > Not entirely true. It's supported in Apple Powerbooks. > > Oh, forgot, some laptops support this if you suspend to ram, swap out > the drive, and then resume. Works for some APM based laptops, don't > know about ACPI based ones. Powerbooks do it on a live system. Look at drivers/macintosh/mediabay.c. > > What happens if we suspend to disk and wake up with a changed drive ? > > Heh, I don't want to think about that :) Let me guess, you have an aversion against horror movies? ;-) Seriously, looking power.c::device_resume() the code assumes that resumpti= on is always successful. That is bad. Error codes need to be returned and=20 evaluated. Regards Oliver ------------------------------------------------------- This SF.net email is sponsored by:Crypto Challenge is now open!=20 Get cracking and register here for some mind boggling fun and=20 the chance of winning an Apple iPod: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en _______________________________________________ Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net Linux-hotplug-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel