2021-12-10 22:19:56

by Thomas Gleixner

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

From: Thomas Gleixner <[email protected]>

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

Signed-off-by: Thomas Gleixner <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Cc: Nishanth Menon <[email protected]>
Cc: Tero Kristo <[email protected]>
Cc: Santosh Shilimkar <[email protected]>
Cc: [email protected]
---
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;



2021-12-11 16:22:31

by Arnd Bergmann

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

On Fri, Dec 10, 2021 at 11:19 PM Thomas Gleixner <[email protected]> wrote:
>
> From: Thomas Gleixner <[email protected]>
>
> Allocate the MSI device data on first invocation of the allocation function.
>
> Signed-off-by: Thomas Gleixner <[email protected]>
> Reviewed-by: Greg Kroah-Hartman <[email protected]>
> Reviewed-by: Jason Gunthorpe <[email protected]>
> Cc: Nishanth Menon <[email protected]>
> Cc: Tero Kristo <[email protected]>
> Cc: Santosh Shilimkar <[email protected]>
> Cc: [email protected]

Acked-by: Arnd Bergmann <[email protected]>

2021-12-13 17:58:18

by Nishanth Menon

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

On 23:19-20211210, Thomas Gleixner wrote:
> From: Thomas Gleixner <[email protected]>
>
> Allocate the MSI device data on first invocation of the allocation function.
>
> Signed-off-by: Thomas Gleixner <[email protected]>
> Reviewed-by: Greg Kroah-Hartman <[email protected]>
> Reviewed-by: Jason Gunthorpe <[email protected]>
> Cc: Nishanth Menon <[email protected]>
> Cc: Tero Kristo <[email protected]>
> Cc: Santosh Shilimkar <[email protected]>
> Cc: [email protected]


Acked-by: Nishanth Menon <[email protected]>

--
Regards,
Nishanth Menon
Key (0xDDB5849D1736249D)/Fingerprint: F8A2 8693 54EB 8232 17A3 1A34 DDB5 849D 1736 249D

Subject: [tip: irq/msi] soc: ti: ti_sci_inta_msi: Allocate MSI device data on first use

The following commit has been merged into the irq/msi branch of tip:

Commit-ID: 686073e9f8466de259971f1acd81b19a39e2162b
Gitweb: https://git.kernel.org/tip/686073e9f8466de259971f1acd81b19a39e2162b
Author: Thomas Gleixner <[email protected]>
AuthorDate: Fri, 10 Dec 2021 23:19:01 +01:00
Committer: Thomas Gleixner <[email protected]>
CommitterDate: Thu, 16 Dec 2021 22:16:39 +01:00

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 <[email protected]>
Tested-by: Nishanth Menon <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Acked-by: Arnd Bergmann <[email protected]>
Acked-by: Nishanth Menon <[email protected]>
Link: https://lore.kernel.org/r/[email protected]

---
drivers/soc/ti/ti_sci_inta_msi.c | 4 ++++
1 file changed, 4 insertions(+)

diff --git a/drivers/soc/ti/ti_sci_inta_msi.c b/drivers/soc/ti/ti_sci_inta_msi.c
index 428a482..a89bcbc 100644
--- 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(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;