Re: [PATCH v1] iommu/riscv: Skip IRQ count check when using MSI interrupts

From: Jörg Rödel

Date: Tue Mar 17 2026 - 08:17:50 EST


On Fri, Jan 30, 2026 at 02:54:20PM +0800, Yaxing Guo wrote:
> In RISC-V IOMMU platform devices that use MSI interrupts (indicated by the
> presence of 'msi-parent' in the device tree), there are no wired interrupt
> lines, so calling platform_get_irq_count() returns 0 or -ENXIO, causing the
> driver to fail during probe.
>
> However, MSI interrupts are allocated dynamically via the MSI subsystem and
> do not appear in the device tree 'interrupts' property. Therefore, the
> driver should not require a non-zero IRQ count when 'msi-parent' is present.
>
> This patch fixes the bug where probe fails when using MSI interrupts
> (which do not have an 'interrupts' property in the device tree)..
>
> Fixes: <d5f88acdd6ff> ("iommu/riscv: Add support for platform msi")
>
> Signed-off-by: Yaxing Guo <guoyaxing@xxxxxxxxxx>
> ---
> drivers/iommu/riscv/iommu-platform.c | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)

Applied, thanks.