[parisc-linux] Re: [2.5] ns87415 irq
Bartlomiej Zolnierkiewicz
B.Zolnierkiewicz@elka.pw.edu.pl
Fri, 11 Jul 2003 16:26:21 +0200 (MET DST)
On Fri, 11 Jul 2003, Matthew Wilcox wrote:
> Would this patch make sense for 2.5? I have to confess not testing it
> on any hardware, but it seems to be the Right Thing (and I'm sure Alan
> remembers the mess we had in the 2.4 parisc tree for this ...)
Question is on what other archs ns87415 is used because some archs
do not have ide_default_irq() ie. sparc64.
from drivers/ide/Kconfig:
config BLK_DEV_NS87415
tristate "NS87415 chipset support"
depends on BLK_DEV_IDEDMA_PCI
help
This driver adds detection and support for the NS87415 chip
(used in SPARC64, among others).
I think sparc64 uses PCI interrupt so this is not a problem.
Are there any other archs using ns87415?
--
Bartlomiej
> --- linus-2.5/drivers/ide/pci/ns87415.c Thu Jul 10 16:18:07 2003
> +++ parisc-2.5/drivers/ide/pci/ns87415.c Fri Jul 11 08:03:17 2003
> @@ -200,7 +200,7 @@
> }
>
> if (!using_inta)
> - hwif->irq = hwif->channel ? 15 : 14; /* legacy mode */
> + hwif->irq = ide_default_irq(hwif->io_ports[IDE_DATA_OFFSET]);
> else if (!hwif->irq && hwif->mate && hwif->mate->irq)
> hwif->irq = hwif->mate->irq; /* share IRQ with mate */