[PATCH] pata_of_platform: fix no irq handling
Alan Cox
alan at lxorguk.ukuu.org.uk
Tue Aug 12 02:26:21 EST 2008
On Mon, 11 Aug 2008 17:36:48 +0100
Ben Dooks <ben-linux at fluff.org> wrote:
>
> On Mon, Aug 11, 2008 at 07:19:13PM +0400, Anton Vorontsov wrote:
> > When no irq specified, pata_of_platform fills irq_res with -1,
> > which is wrong to do for two reasons:
> >
> > 1. By definition, 'no irq' should be IRQ 0, not some negative integer;
>
> interesting, IRQ 0 is actually valid on some ARM systems.
Not as far as Linux is concerned. It's expected that any IRQ that happens
to be "physical IRQ 0" whatever that means is remapped by the arch code
unless not visible outside the arch.
More information about the Linuxppc-dev
mailing list