Commit 686073e9 authored by Thomas Gleixner's avatar Thomas Gleixner

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: default avatarThomas Gleixner <tglx@linutronix.de>
Tested-by: default avatarNishanth Menon <nm@ti.com>
Reviewed-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: default avatarJason Gunthorpe <jgg@nvidia.com>
Acked-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarNishanth Menon <nm@ti.com>
Link: https://lore.kernel.org/r/20211210221813.928842960@linutronix.de
parent 86ca6226
...@@ -120,6 +120,10 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev, ...@@ -120,6 +120,10 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev,
if (pdev->id < 0) if (pdev->id < 0)
return -ENODEV; return -ENODEV;
ret = msi_setup_device_data(dev);
if (ret)
return ret;
nvec = ti_sci_inta_msi_alloc_descs(dev, res); nvec = ti_sci_inta_msi_alloc_descs(dev, res);
if (nvec <= 0) if (nvec <= 0)
return nvec; return nvec;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment