Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp3387818imu; Mon, 28 Jan 2019 04:06:30 -0800 (PST) X-Google-Smtp-Source: ALg8bN7HvAM/XjZSqehB3BBZkh1D+llFRUTqLs9XbC1lRxYcLg/cGuvNXr7iYC1BIGatXw6wMthQ X-Received: by 2002:a17:902:e28e:: with SMTP id cf14mr21919679plb.311.1548677190226; Mon, 28 Jan 2019 04:06:30 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1548677190; cv=none; d=google.com; s=arc-20160816; b=DV3zZIbxoKAD3bx010nE/nWIez+n7dpSA9CTdi/lqjW9eD69VoSxLAoZ9vtkkDqq1j X6AGc6UuCJrpql9JuyhJL+ubL+p9kNlt+oFXUlPjZ5KdpcbbpJ2ZyM9+1XKHP+Ei6KMS GsU6RSEVNN4Dq+oUIVpUKemobKLVJ/SbGouw0wzJmWJS61TrtlfFFRAq3Kvk++nlTYmP VGWF503vX098FmqRGnAnmU2Ll+rswAZhzmsDXiWqXx5Vc8xnkQ+NEBNmc43gwypsREsm LENCx+rse5FtVqpAGjSkykBnx+9YSeTZy6Lo3gD4zpkxgxVhnLOLPvrIgZpWXEPjcHYF DNaA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:organization:user-agent :references:in-reply-to:subject:cc:to:from:message-id:date; bh=PvZpANtRhCn84uV7GO2tvkZfasf2xpRW1JyazmZjSA8=; b=pyEhD/Nu/RhsteGCREiaC6aeio8pquyVoL9Wi+DxBmYz41oIHKPQvq38nNbRA3HIv0 AyrQJcNKeKxxmnW4CtAaKIaW67ag6zNTS8kP4uZsUQwrLNRv04HhqGZM4lW3FqpJ7Hw2 cmzkDo5MA8SYIZQ66IDnRbXD17+JNY85CpkFR/4oYN83G7xOxu81pPVK4DuYigV8C1n7 K7Y90SJ+CAvvRsgJIVYQ3cFN1tID+3FzyvpmYdwcZWHjxRCLVJ7NYyc0jK1FksmoTDsf 9HJgEP9Zs9dhea0wrgOzzgtwLPu+ljbJujCI1uX+2bxry4Qva2YDKbL56rtwF7U1zfEZ Fx8w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id e127si32349998pfg.167.2019.01.28.04.06.15; Mon, 28 Jan 2019 04:06:30 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727022AbfA1MEI (ORCPT + 99 others); Mon, 28 Jan 2019 07:04:08 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:44304 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726714AbfA1MEI (ORCPT ); Mon, 28 Jan 2019 07:04:08 -0500 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D7325EBD; Mon, 28 Jan 2019 04:04:07 -0800 (PST) Received: from big-swifty.misterjones.org (big-swifty.cambridge.arm.com [10.1.39.122]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id EB9293F59C; Mon, 28 Jan 2019 04:04:04 -0800 (PST) Date: Mon, 28 Jan 2019 12:04:07 +0000 Message-ID: <86va29ugy0.wl-marc.zyngier@arm.com> From: Marc Zyngier To: Julien Thierry Cc: , , , , , , , , , Thomas Gleixner , Jason Cooper Subject: Re: [PATCH v9 21/26] irqchip/gic: Add functions to access irq priorities In-Reply-To: <1548084825-8803-22-git-send-email-julien.thierry@arm.com> References: <1548084825-8803-1-git-send-email-julien.thierry@arm.com> <1548084825-8803-22-git-send-email-julien.thierry@arm.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 EasyPG/1.0.0 Emacs/25.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) Organization: ARM Ltd MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 21 Jan 2019 15:33:40 +0000, Julien Thierry wrote: > > Add accessors to the GIC distributor/redistributors priority registers. > > Signed-off-by: Julien Thierry > Cc: Thomas Gleixner > Cc: Jason Cooper > Cc: Marc Zyngier > --- > drivers/irqchip/irq-gic-common.c | 10 ++++++++++ > drivers/irqchip/irq-gic-common.h | 2 ++ > 2 files changed, 12 insertions(+) > > diff --git a/drivers/irqchip/irq-gic-common.c b/drivers/irqchip/irq-gic-common.c > index 3c93c6f..04eadbc 100644 > --- a/drivers/irqchip/irq-gic-common.c > +++ b/drivers/irqchip/irq-gic-common.c > @@ -110,6 +110,16 @@ int gic_configure_irq(unsigned int irq, unsigned int type, > return ret; > } > > +void gic_set_irq_prio(unsigned int irq, void __iomem *base, u8 prio) > +{ > + writeb_relaxed(prio, base + GIC_DIST_PRI + irq); > +} > + > +u8 gic_get_irq_prio(unsigned int irq, void __iomem *base) > +{ > + return readb_relaxed(base + GIC_DIST_PRI + irq); > +} > + Is there a reason why this is in irq-gic-common.c? If we can avoid it, I'd rather this is made private to GICv3, as I do not intend to support this for earlier revisions on the architecture. Thanks, M. -- Jazz is not dead, it just smell funny.