Re: [RFC][ide] simplification of probing for default interfaces

From: Alan Cox (alan@lxorguk.ukuu.org.uk)
Date: Fri May 16 2003 - 11:57:13 EST


On Iau, 2003-05-15 at 20:37, Bartlomiej Zolnierkiewicz wrote:
> ide_init_default_hwifs() does exactly what init_hwif_data() already does
> (both for compiled-in and module case) with exception that it also sets
> hwif->irq, but this is really not a problem since if irq autodection fails,
> driver will fallback to using arch specific default irq.

That sounds sensible, and the iops and other junk

> What I propose is to kill ide_init_default_hwifs() and rely on irq
> autodection + fallback code in ide-probe.c. This requires splitting

Remember the IRQ depends on the mode of the device (legacy v PCI native)
plus some chip specific constraints on pairing.

> ide_init_default_hwifs() to ide_default_io_base() and ide_default_irq()
> for some arm subarchs and breaking (or making it special case)

PA RISC also requires it can override default irq, and wants to know if
the device is the primary or secondary.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 23 2003 - 22:00:25 EST