From: Julien Grall Subject: [PATCH] xen/arm: timer: Don't warn if the timer interrupts are high-level Date: Mon, 2 Mar 2015 15:54:57 +0000 Message-ID: <1425311697-21272-1-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 1YSSgr-0005MR-3u for xen-devel@lists.xenproject.org; Mon, 02 Mar 2015 15:55:29 +0000 Received: by wghn12 with SMTP id n12so34405147wgh.1 for ; Mon, 02 Mar 2015 07:55:27 -0800 (PST) List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: stefano.stabellini@citrix.com, Julien Grall , tim@xen.org, ian.campbell@citrix.com List-Id: xen-devel@lists.xenproject.org The commit 61d6a84 "xen: arm: Warn if timer interrupts are not level triggered" added a check to ensure the timer interrupts are level. Although, the check is only done on low-level interrupts. This will result to a strange warning on platform using high-level ("WARNING [..] IRQ is not level triggered"). As high-level interrupt is valid, don't warn on both high-level and low-level interrupt. Signed-off-by: Julien Grall --- The Seattle DT is using high-level interrupt. Also I haven't tried to boot the latest Xen on it... --- xen/arch/arm/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/arm/time.c b/xen/arch/arm/time.c index 8977cce..352e25e 100644 --- a/xen/arch/arm/time.c +++ b/xen/arch/arm/time.c @@ -217,7 +217,7 @@ static void check_timer_irq_cfg(unsigned int irq, const char *which) * The interrupt controller 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 ) + if ( desc->arch.type & DT_IRQ_TYPE_LEVEL_MASK ) return; printk(XENLOG_WARNING -- 2.1.4