Re: [PATCH] 2.5.5-pre1 IDE cleanup 9

arjan
2002-02-22T20:34:14Z

In article <Pine.LNX.4.10.10202221204400.2519-100000@master.linux-ide.org> you wrote:

> SCSI/ATA share the same problem IIRC, the host/chipset drivers load all
> the device hosts who match that driver code.

> What am I missing?

I know that for scsi it can be fixed. Ok the current scsi layer doesn't do
it right, but there's nothing that prevents it in principle.

Eg

PCI code sees a PCI ID, calls probe for the chip
chip driver looks and sees 2 "cables" and creates host structures for
each.
per host drive discovery is done and registered with a (thin) generic
"I am a disk, gimme a major/minor" layer.

That ought to work. And on hotplug your probe just get called again...