Skip to content
/ linux Public
forked from torvalds/linux

Commit

Permalink
soc: ti: ti_sci_inta_msi: Allocate MSI device data on first use
Browse files Browse the repository at this point in the history
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
  • Loading branch information
KAGA-KOKO committed Dec 16, 2021
1 parent 86ca622 commit 686073e
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions drivers/soc/ti/ti_sci_inta_msi.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ int ti_sci_inta_msi_domain_alloc_irqs(struct device *dev,
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;
Expand Down

0 comments on commit 686073e

Please sign in to comment.