From: Ian Campbell Subject: Re: [PATCH v2 13/16] xen/arm: IRQ: Store IRQ type in arch_irq_desc Date: Tue, 8 Apr 2014 16:54:42 +0100 Message-ID: <1396972482.22845.277.camel@kazak.uk.xensource.com> References: <1396557727-19102-1-git-send-email-julien.grall@linaro.org> <1396557727-19102-14-git-send-email-julien.grall@linaro.org> <1396883028.22845.124.camel@kazak.uk.xensource.com> <5342CD14.7050904@linaro.org> <1396887976.22845.161.camel@kazak.uk.xensource.com> <5343E1A0.8090008@linaro.org> <1396971026.22845.262.camel@kazak.uk.xensource.com> <53441AD0.1020907@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1WXYMJ-0003tH-No for xen-devel@lists.xenproject.org; Tue, 08 Apr 2014 15:54:48 +0000 In-Reply-To: <53441AD0.1020907@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 Tue, 2014-04-08 at 16:50 +0100, Julien Grall wrote: > >> I've just noticed we do the same thing in gic_dist_init. > > > > Whatever the reason for them doing it it probably make sense to do the > > same, otherwise we are just making pain for ourselves. > > > > I'm not convinced that the exynos DT doesn't also need to be fixed > > though. > > In any case we have to be able to boot any valid device tree for Linux > no matter are the values. Right. Those two statements are not contradictory though. > It seems that Linux is ignoring NONE and doesn't update the ICFGR. That makes sense actually: i.e. if DT says none then you have assume that someone (e.g. the bootloader) has done the right thing already and not touch it. > >> If you prefer I can add a common above the function to say 0 is used > >> when an error is occured. > > > > Well, this is a more global thing than this one function really. > > I can use the same solution as serial_irq callbacks, i.e returning -1 in > case of an error. OK.