]> git.baikalelectronics.ru Git - kernel.git/commit
pinctrl: samsung: Use platform_get_irq_optional() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Fri, 24 Dec 2021 14:57:47 +0000 (14:57 +0000)
committerKrzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
Sat, 25 Dec 2021 10:18:06 +0000 (11:18 +0100)
commit4a01ad432f7cc3c5a8e094544a9b946183f6bc55
treef1398b9d23bc6008456229699632571f30a45de8
parent04e46da8f6f494941d462337677391f99a93620e
pinctrl: samsung: Use platform_get_irq_optional() 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_optional().

Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Link: https://lore.kernel.org/r/20211224145748.18754-2-prabhakar.mahadev-lad.rj@bp.renesas.com
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@canonical.com>
drivers/pinctrl/samsung/pinctrl-samsung.c