Skip to content

Commit 811b328

Browse files
Ahmed S. DarwishKAGA-KOKO
authored andcommitted
oc: ti: ti_sci_inta_msi: Switch to domain id aware MSI functions
Switch to the new domain id aware interfaces to phase out the previous ones. Remove the domain check as it happens in the core code now. No functional change. Signed-off-by: Ahmed S. Darwish <darwi@linutronix.de> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Kevin Tian <kevin.tian@intel.com> Acked-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20221124230314.634800247@linutronix.de
1 parent 46a2bc8 commit 811b328

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

drivers/soc/ti/ti_sci_inta_msi.c

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -93,13 +93,8 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev,
9393
struct ti_sci_resource *res)
9494
{
9595
struct platform_device *pdev = to_platform_device(dev);
96-
struct irq_domain *msi_domain;
9796
int ret, nvec;
9897

99-
msi_domain = dev_get_msi_domain(dev);
100-
if (!msi_domain)
101-
return -EINVAL;
102-
10398
if (pdev->id < 0)
10499
return -ENODEV;
105100

@@ -114,7 +109,8 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev,
114109
goto unlock;
115110
}
116111

117-
ret = msi_domain_alloc_irqs_descs_locked(msi_domain, dev, nvec);
112+
/* Use alloc ALL as it's unclear whether there are gaps in the indices */
113+
ret = msi_domain_alloc_irqs_all_locked(dev, MSI_DEFAULT_DOMAIN, nvec);
118114
if (ret)
119115
dev_err(dev, "Failed to allocate IRQs %d\n", ret);
120116
unlock:

0 commit comments

Comments
 (0)