[PATCH 2/2] ARM: ep93xx: bump IRQ offset to 64

Linus Walleij linus.walleij at linaro.org
Fri Feb 8 16:56:48 EST 2013


On Fri, Feb 8, 2013 at 6:38 PM, H Hartley Sweeten
<hartleys at visionengravers.com> wrote:

> I would rather not have this applied.
>
> If you look at the EP93XX_VIC1_VALID_IRQ_MASK you will see that IRQ 0
> (and 1) is not valid. So on EP93xx IRQ 0 is a NO_IRQ.

That the hardware IRQ 0 happens to be unused has nothing to do with
whether or not Linux IRQ 0 is valid.

I rather think it's rather good to bump them up a bit, so that
the reader understands that these are two different number
spaces.

> With VIC1 having a base IRQ of 0 and VIC2 having a base IRQ of 32, the Linux
> irq numbers match the numbers in the EP93xx datasheet. It makes debugging
> a bit easier without having to deal with the offsets.

This is not the design path chosen by Linux, for good or for bad.

If you check /proc/interrupts, you should look for the name of
the user, not the number.

This is why the case where you nail down number offsets
in the VICs irqdomain is called a "legacy domain". And we
don't necessarily want to keep legacy around.

Grant even wanted to get rid of them altogether and only use
descriptors without numbers for IRQs IIRC.

I put the ARM maintainers on the To: line so they can beat me
up if I'm talking rubbish now...

Yours,
Linus Walleij



More information about the linux-arm-kernel mailing list