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 EB286CF6C11 for ; Wed, 7 Jan 2026 08:58:22 +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:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From: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=CgMzXYD8TV+4AE2dYeBNJxGtJejLGKs2Xbu4+63SPOw=; b=i2w1XISDGGrkPmZbcUIYqzVCOS czXPrAXfL26CgLIQX23sZwGIzWgr/DsJ1bgK6DllnrT69ODQARz+SyCpN6da/009cnaLFhzXcMmFR 9BQ4u2/2efGKLf2WETCfOCaEpLe5X2WuHVmOmVj21KKcM5AHwQFyQFCBWWzLFPaMTSoAZzFqgYv6R zxJm4oW8Hi5sY+q0eGA3ofEcD9CjjeKSq+DY0rBC13qoXyCzqu3T4VyjplmFZkWh4ik+3+U2Xl+v4 WClsJkELBZHRHXuxy9Gt1h6a4EGsmV1b10TdE8scfb0jzltdGEiQ2RK7ArBs0X4l6Q5I7h3OtXUex 2vW1ovjw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdPMu-0000000ET1V-3OVo; Wed, 07 Jan 2026 08:58:16 +0000 Received: from tor.source.kernel.org ([2600:3c04:e001:324:0:1991:8:25]) by bombadil.infradead.org with esmtps (Exim 4.98.2 #2 (Red Hat Linux)) id 1vdPMs-0000000ET1C-2m7Y for linux-arm-kernel@lists.infradead.org; Wed, 07 Jan 2026 08:58:14 +0000 Received: from smtp.kernel.org (transwarp.subspace.kernel.org [100.75.92.58]) by tor.source.kernel.org (Postfix) with ESMTP id 5EFFF6013B; Wed, 7 Jan 2026 08:58:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0DCA3C16AAE; Wed, 7 Jan 2026 08:58:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1767776293; bh=YfscGlzjoPdKa2cHm3kbuvdCSUSLTviahPedm8Ok0YU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=e3KV4wp9dk91PRYB7pSFMEbNdL+dcrw9T9h0nU6RHPagQoOpSwUQaA6XkF70RKuTc xtM+n1DqXdbGgVpHLeptVTFwu72Nkld3CNTXiX/Gl/SY+9PZdCNwjudheqAIuSX8gQ rDsEai9kpQPI/dQGZFy+mfY7cwZFOIBH7BsKpQAgi9SCqUqibD7/mr0ux9qWUL5IIf CiquSLDMBiYqU0NDSwQVpQ/PndVbOsLhBcaIbCeQgv57QIR+/aevsY6w44Qfvh5xb2 l73d9ClDxHXKajAgoxdtaZm+L396NIIZjfxPXxUw5oBcdXAD2iHN6VAx5VcXtjbbkz Qe3rWcWrHegjw== Date: Wed, 7 Jan 2026 09:58:07 +0100 From: Lorenzo Pieralisi To: Jonathan Cameron Cc: "Rafael J. Wysocki" , Len Brown , Robert Moore , Thomas Gleixner , Hanjun Guo , Sudeep Holla , Marc Zyngier , Bjorn Helgaas , linux-acpi@vger.kernel.org, acpica-devel@lists.linux.dev, linux-kernel@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-pci@vger.kernel.org Subject: Re: [PATCH v2 3/7] irqdomain: Add parent field to struct irqchip_fwid Message-ID: References: <20251218-gicv5-host-acpi-v2-0-eec76cd1d40b@kernel.org> <20251218-gicv5-host-acpi-v2-3-eec76cd1d40b@kernel.org> <20260105120108.00002016@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260105120108.00002016@huawei.com> 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 Mon, Jan 05, 2026 at 12:01:08PM +0000, Jonathan Cameron wrote: > On Thu, 18 Dec 2025 11:14:29 +0100 > Lorenzo Pieralisi wrote: > > > The GICv5 driver IRQ domain hierarchy requires adding a parent field to > > struct irqchip_fwid so that core code can reference a fwnode_handle parent > > for a given fwnode. > > > > Add a parent field to struct irqchip_fwid and update the related kernel API > > functions to initialize and handle it. > > > > Signed-off-by: Lorenzo Pieralisi > > Cc: Thomas Gleixner > > Cc: Marc Zyngier > Hi Lorenzo, > > Happy new year. Happy New Year ! > > --- > > include/linux/irqdomain.h | 30 ++++++++++++++++++++++++++---- > > kernel/irq/irqdomain.c | 14 +++++++++++++- > > 2 files changed, 39 insertions(+), 5 deletions(-) > > > > diff --git a/include/linux/irqdomain.h b/include/linux/irqdomain.h > > index 62f81bbeb490..b9df84b447a1 100644 > > --- a/include/linux/irqdomain.h > > +++ b/include/linux/irqdomain.h > > @@ -257,7 +257,8 @@ static inline void irq_domain_set_pm_device(struct irq_domain *d, struct device > > > > #ifdef CONFIG_IRQ_DOMAIN > > struct fwnode_handle *__irq_domain_alloc_fwnode(unsigned int type, int id, > > - const char *name, phys_addr_t *pa); > > + const char *name, phys_addr_t *pa, > > + struct fwnode_handle *parent); > > > > enum { > > IRQCHIP_FWNODE_REAL, > > @@ -267,18 +268,39 @@ enum { > > > > static inline struct fwnode_handle *irq_domain_alloc_named_fwnode(const char *name) > > { > > - return __irq_domain_alloc_fwnode(IRQCHIP_FWNODE_NAMED, 0, name, NULL); > > + return __irq_domain_alloc_fwnode(IRQCHIP_FWNODE_NAMED, 0, name, NULL, NULL); > > +} > > + > > +static inline > > +struct fwnode_handle *irq_domain_alloc_named_fwnode_parent(const char *name, > > + struct fwnode_handle *parent) > > The name of this makes me think it's allocating the named fwnode parent, rather that > the named fwnode + setting it's parent. > > There aren't all that many calls to irq_domain_named_fwnode(), maybe to avoid challenge > of a new name, just add the parameter to all of them? (25ish) Mind you the current > pattern for similar cases is a helper, so maybe not. Similar cases ? Have you got anything specific I can look into ? > Or go with something similar to named and have > > irq_domain_alloc_named_parented_fwnode()? Or I can add a set_parent() helper (though that's a bit of churn IMO) ? If Thomas has a preference I will follow that, all of the above is doable for me. > I'm not that bothered though if you think the current naming is the best we can do. I think you have a point - as per my comment above. Thanks, Lorenzo > Jonathan > > > +{ > > + return __irq_domain_alloc_fwnode(IRQCHIP_FWNODE_NAMED, 0, name, NULL, parent); > > } > >