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

Configure Feed

Select the types of activity you want to include in your feed.

gpu: Switch to irq_domain_create_linear()

irq_domain_add_linear() is going away as being obsolete now. Switch to
the preferred irq_domain_create_linear(). That differs in the first
parameter: It takes more generic struct fwnode_handle instead of struct
device_node. Therefore, of_fwnode_handle() is added around the
parameter.

Note some of the users can likely use dev->fwnode directly instead of
indirect of_fwnode_handle(dev->of_node). But dev->fwnode is not
guaranteed to be set for all, so this has to be investigated on case to
case basis (by people who can actually test with the HW).

[ tglx: Fix up subject prefix ]

Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Link: https://lore.kernel.org/all/20250319092951.37667-19-jirislaby@kernel.org


authored by

Jiri Slaby (SUSE) and committed by
Thomas Gleixner
493e1092 9cf19f06

+5 -5
+2 -2
drivers/gpu/drm/amd/amdgpu/amdgpu_irq.c
··· 725 725 */ 726 726 int amdgpu_irq_add_domain(struct amdgpu_device *adev) 727 727 { 728 - adev->irq.domain = irq_domain_add_linear(NULL, AMDGPU_MAX_IRQ_SRC_ID, 729 - &amdgpu_hw_irqdomain_ops, adev); 728 + adev->irq.domain = irq_domain_create_linear(NULL, AMDGPU_MAX_IRQ_SRC_ID, 729 + &amdgpu_hw_irqdomain_ops, adev); 730 730 if (!adev->irq.domain) { 731 731 DRM_ERROR("GPU irq add domain failed\n"); 732 732 return -ENODEV;
+1 -1
drivers/gpu/drm/msm/msm_mdss.c
··· 150 150 151 151 dev = msm_mdss->dev; 152 152 153 - domain = irq_domain_add_linear(dev->of_node, 32, 153 + domain = irq_domain_create_linear(of_fwnode_handle(dev->of_node), 32, 154 154 &msm_mdss_irqdomain_ops, msm_mdss); 155 155 if (!domain) { 156 156 dev_err(dev, "failed to add irq_domain\n");
+2 -2
drivers/gpu/ipu-v3/ipu-common.c
··· 1169 1169 }; 1170 1170 int ret, i; 1171 1171 1172 - ipu->domain = irq_domain_add_linear(ipu->dev->of_node, IPU_NUM_IRQS, 1173 - &irq_generic_chip_ops, ipu); 1172 + ipu->domain = irq_domain_create_linear(of_fwnode_handle(ipu->dev->of_node), IPU_NUM_IRQS, 1173 + &irq_generic_chip_ops, ipu); 1174 1174 if (!ipu->domain) { 1175 1175 dev_err(ipu->dev, "failed to add irq domain\n"); 1176 1176 return -ENODEV;