[PATCH] Fix Maple PATA IRQ assignment.

David Woodhouse dwmw2 at infradead.org
Tue Jan 2 08:15:32 EST 2007


On Mon, 2007-01-01 at 21:22 +0000, Alan wrote:
> On Mon, 01 Jan 2007 19:31:15 +0000
> David Woodhouse <dwmw2 at infradead.org> wrote:
> > There's probably a better way to do this -- especially if we observe
> > that the _only_ case in which this seemingly-generic
> > "pci_get_legacy_ide_irq()" function returns anything other than 14 and
> > 15 for primary and secondary respectively is the case of the AMD8111 on
> > the Maple board -- couldn't we handle that with a special case in the
> > pata_amd driver, or perhaps with a PCI quirk for Maple to switch it into
> > native mode during early boot and assign resources properly?
> 
> There are lots of platforms where the primary/secondary address depends
> upon the board/architecture. PPC actually has functions for this in the
> machine specific goo used by the old driver for one example
> > 
> > Signed-off-by: David Woodhouse <dwmw2 at infradead.org>
> 
> NAK: Alan Cox <alan at redhat.com>
> 
> Please reuse the existing PPC methods that drivers/ide calls into.

Er, that would be pci_get_legacy_ide_irq(), which is what I _have_ used.

As I said, the Maple board is the _only_ user, across all architectures
and all PowerPC platforms, of pci_get_legacy_ide_irq(). And the AMD74xx
driver is the only driver which calls it -- for Maple. Hence the
suggestion that perhaps there's a better way to do it.

-- 
dwmw2




More information about the Linuxppc-dev mailing list