[patch V2 06/36] soc: ti: ti_sci_inta_msi: Allocate MSI device data on first use
Thomas Gleixner
tglx at linutronix.de
Mon Dec 6 14:39:05 PST 2021
Allocate the MSI device data on first invocation of the allocation function.
Signed-off-by: Thomas Gleixner <tglx at linutronix.de>
Reviewed-by: Greg Kroah-Hartman <gregkh at linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg at nvidia.com>
Cc: Nishanth Menon <nm at ti.com>
Cc: Tero Kristo <kristo at kernel.org>
Cc: Santosh Shilimkar <ssantosh at kernel.org>
Cc: linux-arm-kernel at lists.infradead.org
---
drivers/soc/ti/ti_sci_inta_msi.c | 4 ++++
1 file changed, 4 insertions(+)
--- a/drivers/soc/ti/ti_sci_inta_msi.c
+++ b/drivers/soc/ti/ti_sci_inta_msi.c
@@ -120,6 +120,10 @@ int ti_sci_inta_msi_domain_alloc_irqs(st
if (pdev->id < 0)
return -ENODEV;
+ ret = msi_setup_device_data(dev);
+ if (ret)
+ return ret;
+
nvec = ti_sci_inta_msi_alloc_descs(dev, res);
if (nvec <= 0)
return nvec;
More information about the linux-arm-kernel
mailing list