From: Ian Campbell Subject: Re: [PATCH v3 2/2] xen/dt: Allow only IRQ translation that are mapped to main GIC Date: Wed, 16 Jul 2014 15:34:15 +0100 Message-ID: <1405521255.16617.46.camel@kazak.uk.xensource.com> References: <1404912223-9320-1-git-send-email-julien.grall@linaro.org> <1404912223-9320-2-git-send-email-julien.grall@linaro.org> <1405516449.15219.7.camel@kazak.uk.xensource.com> <53C68C14.6000702@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 1X7QHs-00022A-6Q for xen-devel@lists.xenproject.org; Wed, 16 Jul 2014 14:34:28 +0000 In-Reply-To: <53C68C14.6000702@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 Wed, 2014-07-16 at 15:28 +0100, Julien Grall wrote: > >> - /* TODO: Retrieve the right irq_xlate. This is only work for the gic */ > >> + if ( raw->controller != dt_interrupt_controller ) > >> + return -EINVAL; > >> > >> + /* TODO: Retrieve the right irq_xlate. This is only work for the gic */ > > > > "This only works for ...". > > > > Do you mean it to say "primary gic"? In which case I think it was in the > > correct location before (i.e. before the check which enforced that). > > Which location are you talking about? The one in map_device? I meant the place from where it is removed by this patch. I was trying to say that the correct form would be (modulo the long line): /* TODO: Retrieve the right irq_xlate. This only works for the primary gic */ if ( raw->controller != dt_interrupt_controller ) return -EINVAL; return dt_...xlat(...) i.e. the comment belongs with the check. Ian.