Thread (83 messages) flat view 83 messages, 10 authors, 2022-01-31
STALE1645d LANDED: 25 (25M)

2 review trailers; landed in mainline as 686073e9f846 on 2021-12-16.

[patch V3 12/35] soc: ti: ti_sci_inta_msi: Allocate MSI device data on first use

From: Thomas Gleixner <hidden>
Date: 2021-12-10 22:19:56
Also in: linux-arm-kernel, linux-iommu, linux-pci, linuxppc-dev, lkml, xen-devel

From: Thomas Gleixner <redacted>

Allocate the MSI device data on first invocation of the allocation function.

Signed-off-by: Thomas Gleixner <redacted>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Cc: Nishanth Menon <nm@ti.com>
Cc: Tero Kristo <kristo@kernel.org>
Cc: Santosh Shilimkar <ssantosh@kernel.org>
Cc: linux-arm-kernel@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;
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help