[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87v7md2j47.ffs@tglx>
Date: Sun, 24 Aug 2025 10:56:24 +0200
From: Thomas Gleixner <tglx@...utronix.de>
To: Rob Herring <robh@...nel.org>, Lorenzo Pieralisi <lpieralisi@...nel.org>
Cc: linux-kernel@...r.kernel.org, devicetree@...r.kernel.org,
linux-arm-kernel@...ts.infradead.org, Marc Zyngier <maz@...nel.org>
Subject: Re: [PATCH] of/irq: Convert of_msi_map_id() callers to of_msi_xlate()
On Wed, Aug 13 2025 at 13:52, Rob Herring wrote:
> On Tue, Aug 05, 2025 at 03:34:43PM +0200, Lorenzo Pieralisi wrote:
>> With the introduction of the of_msi_xlate() function, the OF layer
>> provides an API to map a device ID and retrieve the MSI controller
>> node the ID is mapped to with a single call.
>>
>> of_msi_map_id() is currently used to map a deviceID to a specific
>> MSI controller node; of_msi_xlate() can be used for that purpose
>> too, there is no need to keep the two functions.
>>
>> Convert of_msi_map_id() to of_msi_xlate() calls and update the
>> of_msi_xlate() documentation to describe how the struct device_node
>> pointer passed in should be set-up to either provide the MSI controller
>> node target or receive its pointer upon mapping completion.
>>
>> Signed-off-by: Lorenzo Pieralisi <lpieralisi@...nel.org>
>> Cc: Thomas Gleixner <tglx@...utronix.de>
>> Cc: Rob Herring <robh@...nel.org>
>> Cc: Marc Zyngier <maz@...nel.org>
>> ---
>> As suggested by RobH:
>>
>> https://lore.kernel.org/lkml/20250627213241.GA168190-robh@kernel.org/
>>
>> drivers/irqchip/irq-gic-v3-its-fsl-mc-msi.c | 2 +-
>> drivers/of/irq.c | 25 +++++----------------
>> drivers/pci/msi/irqdomain.c | 2 +-
>> include/linux/of_irq.h | 6 -----
>> 4 files changed, 7 insertions(+), 28 deletions(-)
>
> Looks good to me. I'm happy to take it with some acks.
>
Acked-by: Thomas Gleixner <tglx@...utronix.de>
Powered by blists - more mailing lists