From mboxrd@z Thu Jan 1 00:00:00 1970 From: Russell King - ARM Linux Subject: Re: [RFC patch 7/8] genirq: generic chip: Add linear irq domain support Date: Fri, 3 May 2013 23:23:01 +0100 Message-ID: <20130503222300.GF18614@n2100.arm.linux.org.uk> References: <20130503212258.385818955@linutronix.de> <20130503214629.810207749@linutronix.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Content-Disposition: inline In-Reply-To: <20130503214629.810207749@linutronix.de> Sender: linux-kernel-owner@vger.kernel.org To: Thomas Gleixner Cc: LKML , Sebastian Hesselbarth , 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 Fri, May 03, 2013 at 09:50:53PM -0000, Thomas Gleixner wrote: > + /* Init mask cache ? */ > + if (dgc->gc_flags & IRQ_GC_INIT_MASK_CACHE) { > + raw_spin_lock_irqsave(&gc->lock, flags); > + gc->mask_cache = irq_reg_readl(gc->reg_base + ct->regs.mask); > + raw_spin_unlock_irqrestore(&gc->lock, flags); > + } This looks a little weird to me - it seems that it'll re-read this each time any irq is mapped in the domain, which is probably not wanted.