Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

irqchip/imx-mu-msi: Convert to msi_create_parent_irq_domain() helper

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@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Nam Cao <tglx@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/all/4f05fff99b6cc5875d2f4dadd31707e2dedaafc8.1750860131.git.namcao@linutronix.de
Link: https://lore.kernel.org/all/20241204124549.607054-7-maz@kernel.org

authored by

Marc Zyngier and committed by
Thomas Gleixner
c7cc7b12 59422904

+7 -7
+7 -7
drivers/irqchip/irq-imx-mu-msi.c
··· 223 223 224 224 static int imx_mu_msi_domains_init(struct imx_mu_msi *msi_data, struct device *dev) 225 225 { 226 - struct fwnode_handle *fwnodes = dev_fwnode(dev); 226 + struct irq_domain_info info = { 227 + .ops = &imx_mu_msi_domain_ops, 228 + .fwnode = dev_fwnode(dev), 229 + .size = IMX_MU_CHANS, 230 + .host_data = msi_data, 231 + }; 227 232 struct irq_domain *parent; 228 233 229 234 /* Initialize MSI domain parent */ 230 - parent = irq_domain_create_linear(fwnodes, IMX_MU_CHANS, 231 - &imx_mu_msi_domain_ops, msi_data); 235 + parent = msi_create_parent_irq_domain(&info, &imx_mu_msi_parent_ops); 232 236 if (!parent) { 233 237 dev_err(dev, "failed to create IRQ domain\n"); 234 238 return -ENOMEM; 235 239 } 236 - 237 - irq_domain_update_bus_token(parent, DOMAIN_BUS_NEXUS); 238 240 parent->dev = parent->pm_dev = dev; 239 - parent->flags |= IRQ_DOMAIN_FLAG_MSI_PARENT; 240 - parent->msi_parent_ops = &imx_mu_msi_parent_ops; 241 241 return 0; 242 242 } 243 243