]> git.baikalelectronics.ru Git - kernel.git/commit
i2c: bcm2835: Use platform_get_irq() to get the interrupt
authorLad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>
Tue, 21 Dec 2021 17:53:20 +0000 (17:53 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:23:29 +0000 (14:23 +0200)
commitc35975ec400f917f04452710b055acc0f7318df0
treece18871b95364b2bae127b08f78ac25a80f01269
parentb5d8e889863fc5188ef91e315d76559a86f7a60e
i2c: bcm2835: Use platform_get_irq() to get the interrupt

[ Upstream commit f4306e95fad4cede6c19e72ad551c4f81191c559 ]

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: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Wolfram Sang <wsa@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/i2c/busses/i2c-bcm2835.c