[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <175616051613.748925.14127647667836301013.robh@kernel.org>
Date: Mon, 25 Aug 2025 17:21:57 -0500
From: "Rob Herring (Arm)" <robh@...nel.org>
To: Lorenzo Pieralisi <lpieralisi@...nel.org>
Cc: Thomas Gleixner <tglx@...utronix.de>, Marc Zyngier <maz@...nel.org>,
linux-kernel@...r.kernel.org, linux-arm-kernel@...ts.infradead.org,
devicetree@...r.kernel.org
Subject: Re: [PATCH] of/irq: Convert of_msi_map_id() callers to of_msi_xlate()
On Tue, 05 Aug 2025 15:34:43 +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(-)
>
Applied, thanks!
Powered by blists - more mailing lists