mbox series

[0/2] memory: omap-gpmc: Use platform_get_irq() to get the interrupt

Message ID 20211221203916.18588-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Headers show
Series memory: omap-gpmc: Use platform_get_irq() to get the interrupt | expand

Message

Prabhakar Mahadev Lad Dec. 21, 2021, 8:39 p.m. UTC
Hi All,

This patch series aims to drop using platform_get_resource() for IRQ types
in preparation for removal of static setup of IRQ resource from DT core
code.

Dropping usage of platform_get_resource() was agreed based on
the discussion [0].

[0] https://patchwork.kernel.org/project/linux-renesas-soc/
patch/20211209001056.29774-1-prabhakar.mahadev-lad.rj@bp.renesas.com/

While doing the above just noticed the code can be simplified
so introduced patch 2/2 to use devm_platform_ioremap_resource().

Cheers,
Prabhakar

Lad Prabhakar (2):
  memory: omap-gpmc: Use platform_get_irq() to get the interrupt
  memory: omap-gpmc: Make use of the devm_platform_ioremap_resource()

 drivers/memory/omap-gpmc.c | 17 ++++-------------
 1 file changed, 4 insertions(+), 13 deletions(-)

Comments

Krzysztof Kozlowski Dec. 22, 2021, 11:19 a.m. UTC | #1
On Tue, 21 Dec 2021 20:39:15 +0000, Lad Prabhakar wrote:
> 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().
> 
> [...]

Applied, thanks!

[1/2] memory: omap-gpmc: Use platform_get_irq() to get the interrupt
      commit: b1ae2e3748142e7324911029703173f464a83522

Best regards,