[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <Z1DelMq8m7eG9SA2@lizhi-Precision-Tower-5810>
Date: Wed, 4 Dec 2024 17:58:28 -0500
From: Frank Li <Frank.li@....com>
To: Marc Zyngier <maz@...nel.org>
Cc: iommu@...ts.linux.dev, linux-kernel@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, loongarch@...ts.linux.dev,
linux-riscv@...ts.infradead.org, linux-pci@...r.kernel.org,
Joerg Roedel <joro@...tes.org>,
Suravee Suthikulpanit <suravee.suthikulpanit@....com>,
David Woodhouse <dwmw2@...radead.org>,
Lu Baolu <baolu.lu@...ux.intel.com>,
Thomas Gleixner <tglx@...utronix.de>,
Shawn Guo <shawnguo@...nel.org>,
Sascha Hauer <s.hauer@...gutronix.de>,
Fabio Estevam <festevam@...il.com>,
Huacai Chen <chenhuacai@...nel.org>,
WANG Xuerui <kernel@...0n.name>,
Jiaxun Yang <jiaxun.yang@...goat.com>, Andrew Lunn <andrew@...n.ch>,
Gregory Clement <gregory.clement@...tlin.com>,
Sebastian Hesselbarth <sebastian.hesselbarth@...il.com>,
Anup Patel <anup@...infault.org>,
Paul Walmsley <paul.walmsley@...ive.com>,
Palmer Dabbelt <palmer@...belt.com>,
Albert Ou <aou@...s.berkeley.edu>,
Lorenzo Pieralisi <lpieralisi@...nel.org>,
Krzysztof WilczyĆski <kw@...ux.com>,
Manivannan Sadhasivam <manivannan.sadhasivam@...aro.org>,
Bjorn Helgaas <bhelgaas@...gle.com>,
Toan Le <toan@...amperecomputing.com>,
Alyssa Rosenzweig <alyssa@...enzweig.io>
Subject: Re: [PATCH 06/11] irqchip/imx-mu-msi: Convert to
msi_create_parent_irq_domain() helper
On Wed, Dec 04, 2024 at 12:45:44PM +0000, Marc Zyngier wrote:
> Now that we have a concise helper to create an MSI parent domain,
> switch the IMX letter soup over to that.
>
> Signed-off-by: Marc Zyngier <maz@...nel.org>
Reviewed-by: Frank Li <Frank.Li@....com>
> ---
> drivers/irqchip/irq-imx-mu-msi.c | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/drivers/irqchip/irq-imx-mu-msi.c b/drivers/irqchip/irq-imx-mu-msi.c
> index b3f656c6e7708..b73968423bb9f 100644
> --- a/drivers/irqchip/irq-imx-mu-msi.c
> +++ b/drivers/irqchip/irq-imx-mu-msi.c
> @@ -226,17 +226,15 @@ static int imx_mu_msi_domains_init(struct imx_mu_msi *msi_data, struct device *d
> struct irq_domain *parent;
>
> /* Initialize MSI domain parent */
> - parent = irq_domain_create_linear(fwnodes, IMX_MU_CHANS,
> - &imx_mu_msi_domain_ops, msi_data);
> + parent = msi_create_parent_irq_domain(fwnodes, &imx_mu_msi_parent_ops,
> + &imx_mu_msi_domain_ops, 0,
> + IMX_MU_CHANS, msi_data, NULL);
> if (!parent) {
> dev_err(dev, "failed to create IRQ domain\n");
> return -ENOMEM;
> }
>
> - irq_domain_update_bus_token(parent, DOMAIN_BUS_NEXUS);
> parent->dev = parent->pm_dev = dev;
> - parent->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT;
> - parent->msi_parent_ops = &imx_mu_msi_parent_ops;
> return 0;
> }
>
> --
> 2.39.2
>
Powered by blists - more mailing lists