Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755910Ab3ILWM3 (ORCPT ); Thu, 12 Sep 2013 18:12:29 -0400 Received: from www.linutronix.de ([62.245.132.108]:33075 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752223Ab3ILWM1 (ORCPT ); Thu, 12 Sep 2013 18:12:27 -0400 Date: Fri, 13 Sep 2013 00:12:24 +0200 (CEST) From: Thomas Gleixner To: Felipe Balbi cc: Sricharan R , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linus.walleij@linaro.org, santosh.shilimkar@ti.com, linux@arm.linux.org.uk, tony@atomide.com, rnayak@ti.com Subject: Re: [RFC PATCH 1/4] DRIVERS: IRQCHIP: Add crossbar irqchip driver In-Reply-To: Message-ID: References: <1379000351-15672-1-git-send-email-r.sricharan@ti.com> <1379000351-15672-2-git-send-email-r.sricharan@ti.com> <20130912205417.GA539@radagast> User-Agent: Alpine 2.02 (DEB 1266 2009-07-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1106 Lines: 35 On Thu, 12 Sep 2013, Thomas Gleixner wrote: > On Thu, 12 Sep 2013, Felipe Balbi wrote: > > > On Thu, Sep 12, 2013 at 09:09:08PM +0530, Sricharan R wrote: > > > +unsigned int crossbar_request_irq(struct irq_data *d) > > > +{ > > > + int cb_no = d->hwirq; > > > + int virq = allocate_free_irq(cb_no); > > > + void *irq = &cb->crossbar_map[cb_no].hwirq; > > > + int err; > > > + > > > + err = request_threaded_irq(virq, crossbar_irq, NULL, > > > + 0, "CROSSBAR", irq); > > > > this is wrong, why don't you just set crossbar up as a chained handler. > > That's just a detail, which does not solve the underlying problem of > the crossbar -> GIC mapping. And actually the thing is the other way round: GIC distributes to crossbar, so the underlying GIC irq would be the chained handler. Still does not solve the setup/request_irq issue. Thanks, tglx -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/