From: Ian Campbell Subject: Re: [PATCH v7 1/6] xen/arm: IRQ: Store IRQ type in arch_irq_desc Date: Wed, 21 May 2014 13:27:08 +0100 Message-ID: <1400675228.4856.51.camel@kazak.uk.xensource.com> References: <1400251232-7695-1-git-send-email-julien.grall@linaro.org> <1400251232-7695-2-git-send-email-julien.grall@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wn5c1-0001QS-SS for xen-devel@lists.xenproject.org; Wed, 21 May 2014 12:27:13 +0000 In-Reply-To: <1400251232-7695-2-git-send-email-julien.grall@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, tim@xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Fri, 2014-05-16 at 15:40 +0100, Julien Grall wrote: > For now, ARM uses different IRQ functions to setup an interrupt handler. This > is a bit annoying for common driver because we have to add idefery when > an IRQ is setup (see ns16550_init_postirq for an example). > > To avoid to completely fork the IRQ management code, we can introduce a field > to store the IRQ type (e.g level/edge ...). > > This patch also adds platform_get_irq which will retrieve the IRQ from the > device tree and setup correctly the IRQ type. > > In order to use this solution, we have to move init_IRQ earlier for the boot > CPU. It's fine because the code only depends on percpu. > > Signed-off-by: Julien Grall Acked-by: Ian Campbell and with that I have shovelled the whole lot in. Thanks! Ian.