Re: [PATCH 1/3] ARM: clps711x: Add CLPS711X irqchip driver

Alexander Shiyan shc_work at mail.ru
Sat Dec 7 09:40:22 EST 2013


> On Monday 02 December 2013, Alexander Shiyan wrote:
> > This adds the irqchip driver for Cirrus Logic CLPS711X series SoCs.
> > 
> > Signed-off-by: Alexander Shiyan <shc_work at mail.ru>
...
> > +static void clps711x_intc_unmask(struct irq_data *d)
> > +{
> > +	irq_hw_number_t hwirq = irqd_to_hwirq(d);
> > +	void __iomem *intmr = clps711x_intc->intmr[hwirq / 16];
> > +	u32 tmp;
> > +
> > +	tmp = readl_relaxed(intmr);
> > +	tmp |= 1 << (hwirq % 16);
> > +	writel_relaxed(tmp, intmr);
> > +}
> 
> These look rather simple, have you checked if you can reuse the generic
> irqchip code?

I thought about it but did not come to a decision for EOI handlers.

...
> > +void __init clps711x_intc_init(phys_addr_t base, resource_size_t size)
> > +{
> > +	BUG_ON(_clps711x_intc_init(NULL, base, size));
> > +}
> > +EXPORT_SYMBOL(clps711x_intc_init);
> 
> No need to export this symbol, because you don't call the function from
> loadable modules.

OK. I will remove it in the next version by adding "maybe_unused" to this
function to avoid possible warnings.

---


More information about the linux-arm-kernel mailing list