From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Hesselbarth Subject: Re: [RFC patch 8/8] irqchip: sun4i: Convert to generic irq chip Date: Sat, 04 May 2013 04:37:24 +0200 Message-ID: <51847464.8040802@gmail.com> References: <20130503212258.385818955@linutronix.de> <20130503214629.880345092@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20130503214629.880345092@linutronix.de> Sender: linux-doc-owner@vger.kernel.org To: Thomas Gleixner Cc: LKML , Russell King - ARM Linux , Grant Likely , Rob Herring , Rob Landley , Arnd Bergmann , Jason Cooper , Andrew Lunn , Jason Gunthorpe , Thomas Petazzoni , Gregory Clement , Ezequiel Garcia , Maxime Ripard , Jean-Francois Moine , Gerlando Falauto , devicetree-discuss@lists.ozlabs.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org List-Id: devicetree@vger.kernel.org On 05/03/2013 11:50 PM, Thomas Gleixner wrote: > Proof of concept patch to demonstrate the new irqdomain support for > the generic irq chip. Untested !! > > Signed-off-by: Thomas Gleixner > Cc: Maxime Ripard > --- ... > + gc->reg_base = sun4i_irq_base; > + gc->chip_types[0].regs.mask = SUN4I_IRQ_ENABLE_REG(i); > + gc->chip_types[0].regs.ack = SUN4I_IRQ_PENDING_REG(i); > + gc->chip_types[0].chip.mask = irq_gc_mask_clr_bit; > + gc->chip_types[0].chip.ack = irq_gc_ack_set_bit; > + gc->chip_types[0].chip.unmask = irq_gc_mask_set_bit; To help Maxime debug, the three callbacks must be prepended by irq_, i.e. chip.irq_mask, ... Sebastian