From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 2/2] xen: arm: Warn if timer interrupts are not level triggered Date: Sat, 28 Feb 2015 22:20:19 +0000 Message-ID: <54F23F23.4070506@linaro.org> References: <1424359395.30924.89.camel@citrix.com> <1424359443-21584-2-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1424359443-21584-2-git-send-email-ian.campbell@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell , xen-devel@lists.xen.org Cc: tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org Hi Ian, On 19/02/2015 15:24, Ian Campbell wrote: > +static void check_timer_irq_cfg(unsigned int irq, const char *which) > +{ > + struct irq_desc *desc = irq_to_desc(irq); > + > + /* > + * The interrupt contoller driver will update desc->arch.type with > + * the actual type which ended up configured in the hardware. > + */ > + if ( desc->arch.type & DT_IRQ_TYPE_LEVEL_LOW ) > + return; I should have spotted it before ... The timer interrupts can be either level low or high. For instance Seattle is using level high interrupts. Therefore, the error message will be odd on this platform. I will send a patch Monday to fix it. Regards, -- Julien Grall