]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
rtc: ftrtc010: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Mon, 20 Dec 2021 01:15:24 +0000 (01:15 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 26 Aug 2022 08:52:41 +0000 (10:52 +0200)
commit5b9a18c4863117f78892d1045d6158d7d1c0ad2e
treef263589ad76d8f4b9bcb833318e3409ff5fbdaba
parent082fd2ddc3c71059e0ea3ff3d9d8bc2881c190fd
rtc: ftrtc010: Use platform_get_irq() to get the interrupt

BugLink: https://bugs.launchpad.net/bugs/1982968
[ Upstream commit 05020a733b02cf7a474305e620fb306cd3abfe84 ]

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: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20211220011524.17206-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/rtc/rtc-ftrtc010.c