[PATCH 1/2] versatile: sic: add device tree bindings

Russell King - ARM Linux linux at arm.linux.org.uk
Fri Jan 13 16:19:58 EST 2012


On Fri, Jan 13, 2012 at 02:00:41PM -0700, Grant Likely wrote:
> Let me look at it a bit.  You can leave the initialization loop in
> fpga_irq_init() for now.  I'm looking at adding a mask field to
> irq_domain_add_legacy in addition to the host_data pointer.  I also
> want to investigate replacing fpga_irq with generic-chip.c.  The
> problem I've currently got though is that irq_domain_add_legacy() can
> currently support any number of irqs, but adding a simple mask
> argument will limit it to 32.  That won't work for large irq
> controllers like the gic.

The easy answer is not to register the IRQs which don't actually exist
or we don't want to be used out of the set of 32.

However, the problem comes with:

#define PIC_MASK        0xFFD00000

where we have an IRQ23 but no IRQ22.



More information about the linux-arm-kernel mailing list