dmaengine: mediatek: mtk-hsdma: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 4 Apr 2022 15:55:56 +0000 (16:55 +0100)
committerVinod Koul <vkoul@kernel.org>
Mon, 11 Apr 2022 10:56:53 +0000 (16:26 +0530)
commitbb40bb695ec8b90bee4bfd7db52ba92c4a0b7586
tree253fd73fa2f225f31aacfba34cb24be7c33c8baf
parent8b0c99371ac8c8db25ce68ce207fee3b22627597
dmaengine: mediatek: mtk-hsdma: Use platform_get_irq() to get the interrupt

platform_get_resource(pdev, IORESOURCE_IRQ, ..) relies on static
allocation of IRQ resources in DT core code, this causes an issue
when using hierarchical interrupt domains using "interrupts" property
in the node as this bypasses the hierarchical setup and messes up the
irq chaining.

In preparation for removal of static setup of IRQ resource from DT core
code use platform_get_irq().

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220404155557.27316-3-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/mediatek/mtk-hsdma.c