From: Ian Campbell Subject: Re: [PATCH v5 08/21] xen/arm: use device api to detect GIC version Date: Tue, 17 Jun 2014 13:23:47 +0100 Message-ID: <1403007827.16844.80.camel@kazak.uk.xensource.com> References: <1402580192-13937-1-git-send-email-vijay.kilari@gmail.com> <1402580192-13937-9-git-send-email-vijay.kilari@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1402580192-13937-9-git-send-email-vijay.kilari@gmail.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: vijay.kilari@gmail.com Cc: stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, vijaya.kumar@caviumnetworks.com, julien.grall@linaro.org, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Thu, 2014-06-12 at 19:06 +0530, vijay.kilari@gmail.com wrote: > > -#define DT_MATCH_GIC DT_MATCH_COMPATIBLE("arm,cortex-a15-gic"), \ > - DT_MATCH_COMPATIBLE("arm,cortex-a7-gic") > +#define DT_MATCH_GIC_V2_STRING_1 "arm,cortex-a15-gic" > +#define DT_MATCH_GIC_V2_STRING_2 "arm,cortex-a7-gic" Please can you name these DT_COMPAT_GIC_CORTEX_A15 / A7. i.e. s/MATCH/COMPAT/ (because that suits the other use which is made better) and explicitly naming the processors rather than just string-N. With the processor names in place I think you can safely drop the V2 from these (but not from DT_MATCH_GIC_V2 below). With that changed: Acked-by: Ian Campbell Ian. > + > +#define DT_MATCH_GIC_V2 DT_MATCH_COMPATIBLE(DT_MATCH_GIC_V2_STRING_1), \ > + DT_MATCH_COMPATIBLE(DT_MATCH_GIC_V2_STRING_2) > > /* > * GICv2 register that needs to be saved/restored