Thread (13 messages) 13 messages, 5 authors, 2004-08-12

Re: [RFC] IDE/ATA/SATA controller hotplug

From: Paul Ionescu <hidden>
Date: 2004-08-12 11:36:07

On Wed, 11 Aug 2004 15:33:06 -0400, Jeff Garzik wrote:
quoted
I would have to differ with you here.  From conversations and fairly
(2 or 3 months ago) experience, the IDE core is not capable of being
unloaded.
As long as the low-level driver can be unloaded, that's sufficient for 
hardware- and device-hotplug.
Hi Jeff,

On my laptop I have 2 ide buses, ide0 and ide1.
On ide0 I have my hard-drive hda, and on ide1 I have a swappable
cdrom/hard bay as hdc (also I can plug floppy/2nd battery).
I want to be able to hotswap those devices in ide1.
"idectl 1 on/off" from hdparms is broken.
So, I decided to go for modular ide and have the ide module inserted
twice, one time for ide0, and second time for ide1. (of course with 2
different names).
Is this the correct approach ?

I tried to compile IDE as module (kernel 2.6.8-rc4-mm1) in order to have
ide.ko and to be able to insert it with 
insmod ide.ko -o ide0 options="ide1=noprobe"
and
insmod ide.ko -o ide1 options="ide0=noprobe"

Is this supposed to work on a 2.6.x kernel ?
I could not find any ide.ko generated. Only ide-core.ko, ide-generic.ko
and others.

My inspiration was Documentation/ide.txt 

Maybe the docs have to be updated a little bit, but till then, can you
give me some directions on how to proceed further ?

Thanks,
Paul

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help