From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id DB75FCCD193 for ; Mon, 20 Oct 2025 10:47:14 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:Content-Type:MIME-Version: References:In-Reply-To:Subject:Cc:To:From:Message-ID:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=cOTewlAyMae/oTUyTw9vyxOMvjaJUvkxB/PI1rpYMC8=; b=G7wi44sINJ+1kbbPwsHm6EzTkC hpjWJERm+WRDvGbwYmtIlpmhX/nxuvRO83aEstxrO6vCmGvNWEEyHQsyIK78p/3mHoDyYwuXk7GIV oUuknFEYPwOH5A535RNscyXqPZk1Ps9zsotuGof8wBMrje7epxdEg/vS3K2Tp2jwAcp70N23kB7ua kTwGXvqOBHpiBaqVCKZoVJfhId4mOKtLQ2oduudUfFRyEJduZifvfTW7f1jq/ZoNflihlJAv6w8LA 42tMn4EX22dkYJdMSca73J4P12LezhxpXD6KN+aecRkx0ufuDG8Xs23qfnXktbMM1voXMj4dNSASw UZWpiq1Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vAnPy-0000000CvM7-0MJR; Mon, 20 Oct 2025 10:47:10 +0000 Received: from sea.source.kernel.org ([2600:3c0a:e001:78e:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vAnPv-0000000CvKp-3FBG for linux-arm-kernel@lists.infradead.org; Mon, 20 Oct 2025 10:47:09 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by sea.source.kernel.org (Postfix) with ESMTP id 7330841728; Mon, 20 Oct 2025 10:47:07 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 45EF9C4CEF9; Mon, 20 Oct 2025 10:47:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1760957227; bh=aRCKuRMfy54t4bXfC91JSBbnFrkYdLdzDBFthyWBges=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=C5wXs9UrwAszdToIyQFZOKA+qjfH1I2yEPkUwkzif5j4NUpLKHFN+GMhrhIqgexug RION/AebVZepdsmtOasBwAWiACN37Gehlt1tI8qJg7HtryTMMo10HtKPrCYnzR4mqe 4+PULhz1P29UQ7xi9xpd6H5FBB+GABK10UO1niUyk/RDp0/kyX2pLnbML9flNDcQzL aYW2fXSJMZ3lR3hb360j2riGA3jr36dSUWNgOK7M5tcBXGGa9PTP6H75+SqYahWyFO kMCmQhwDcBIhvdGNxp8m1U8ycZ8ibkyN4OjbXeseDCjOCx9Rphnry3738s2aUJRn3N wCconD0AwTHAg== Received: from sofa.misterjones.org ([185.219.108.64] helo=goblin-girl.misterjones.org) by disco-boy.misterjones.org with esmtpsa (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vAnPt-0000000FSul-0I6N; Mon, 20 Oct 2025 10:47:05 +0000 Date: Mon, 20 Oct 2025 11:47:04 +0100 Message-ID: <86plahx32v.wl-maz@kernel.org> From: Marc Zyngier To: Jonathan Cameron Cc: , , , Thomas Gleixner , "Mark\ Rutland" , Will Deacon , "Rafael J.\ Wysocki" , Rob Herring , "Saravana\ Kannan" , Greg Kroah-Hartman , Sven Peter , Janne Grunau , Suzuki K Poulose , James Clark Subject: Re: [PATCH v3 03/26] of/irq: Add IRQ affinity reporting interface In-Reply-To: <20251009174959.00001b05@huawei.com> References: <20250922082833.2038905-1-maz@kernel.org> <20250922082833.2038905-4-maz@kernel.org> <20251009174959.00001b05@huawei.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI-EPG/1.14.7 (Harue) FLIM-LB/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL-LB/10.8 EasyPG/1.0.0 Emacs/30.1 (aarch64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Content-Type: text/plain; charset=US-ASCII X-SA-Exim-Connect-IP: 185.219.108.64 X-SA-Exim-Rcpt-To: jonathan.cameron@huawei.com, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-acpi@vger.kernel.org, tglx@linutronix.de, mark.rutland@arm.com, will@kernel.org, rafael@kernel.org, robh@kernel.org, saravanak@google.com, gregkh@linuxfoundation.org, sven@kernel.org, j@jannau.net, suzuki.poulose@arm.com, james.clark@linaro.org X-SA-Exim-Mail-From: maz@kernel.org X-SA-Exim-Scanned: No (on disco-boy.misterjones.org); SAEximRunCond expanded to false X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20251020_034707_853967_0A50D151 X-CRM114-Status: GOOD ( 22.89 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org On Thu, 09 Oct 2025 17:49:59 +0100, Jonathan Cameron wrote: > > On Mon, 22 Sep 2025 09:28:10 +0100 > Marc Zyngier wrote: > > > Plug the irq_populate_fwspec_info() helper into the OF layer > > to offer an IRQ affinity reporting function. > > > > Signed-off-by: Marc Zyngier > Trivial comment inline but I don't care that much. > Reviewed-by: Jonathan Cameron > > > --- > > drivers/of/irq.c | 20 ++++++++++++++++++++ > > include/linux/of_irq.h | 7 +++++++ > > 2 files changed, 27 insertions(+) > > > > diff --git a/drivers/of/irq.c b/drivers/of/irq.c > > index 74aaea61de13c..9a205cb033bda 100644 > > --- a/drivers/of/irq.c > > +++ b/drivers/of/irq.c > > @@ -479,6 +479,26 @@ int of_irq_get(struct device_node *dev, int index) > > } > > EXPORT_SYMBOL_GPL(of_irq_get); > > > > +const struct cpumask *of_irq_get_affinity(struct device_node *dev, int index) > > +{ > > + struct of_phandle_args oirq; > > + struct irq_fwspec_info info; > > + struct irq_fwspec fwspec; > > + int rc; > > + > > + rc = of_irq_parse_one(dev, index, &oirq); > > + if (rc) > > + return NULL; > > + > > + of_phandle_args_to_fwspec(oirq.np, oirq.args, oirq.args_count, > > + &fwspec); > > + > > + if (!irq_populate_fwspec_info(&fwspec, &info)) > > + return info.affinity; > My slightly picky mental consistency filter suggests that this would look > more like the ACPI version as > > if (irq_populate_fwspec_info(&fwspec, &info)) > return NULL; > > return info.affinity; > > But I don't really care. Consistency doesn't hurt. I've applied this. Thanks, M. -- Without deviation from the norm, progress is not possible.