Skip to content

Commit 686073e

Browse files
committed
soc: ti: ti_sci_inta_msi: Allocate MSI device data on first use
Allocate the MSI device data on first invocation of the allocation function. Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Tested-by: Nishanth Menon <nm@ti.com> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Reviewed-by: Jason Gunthorpe <jgg@nvidia.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Nishanth Menon <nm@ti.com> Link: https://lore.kernel.org/r/20211210221813.928842960@linutronix.de
1 parent 86ca622 commit 686073e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

drivers/soc/ti/ti_sci_inta_msi.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,10 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev,
120120
if (pdev->id < 0)
121121
return -ENODEV;
122122

123+
ret = msi_setup_device_data(dev);
124+
if (ret)
125+
return ret;
126+
123127
nvec = ti_sci_inta_msi_alloc_descs(dev, res);
124128
if (nvec <= 0)
125129
return nvec;

0 commit comments

Comments
 (0)