[PATCH 1/4] ARM i.MX avic: add handle_irq function

Sascha Hauer s.hauer at pengutronix.de
Mon Sep 26 08:25:20 EDT 2011


On Mon, Sep 26, 2011 at 12:21:51PM +0100, Russell King - ARM Linux wrote:
> On Mon, Sep 26, 2011 at 11:46:06AM +0200, Sascha Hauer wrote:
> > +void avic_handle_irq(struct pt_regs *);
> > +
> > +#define imx1_handle_irq avic_handle_irq
> > +#define imx21_handle_irq avic_handle_irq
> > +#define imx25_handle_irq avic_handle_irq
> > +#define imx27_handle_irq avic_handle_irq
> > +#define imx31_handle_irq avic_handle_irq
> > +#define imx35_handle_irq avic_handle_irq
> 
> Is there really something wrong in knowing (elsewhere) that mx1..mx35 all
> use the avic irq handler?

No technical reason. I copied this from the pxa code and thought
this way a board implementer does not need to know the interrupt
controller type but only the SoC type. We can use avic_/tzic_
directly if you like.

Sascha

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |



More information about the linux-arm-kernel mailing list