mbox series

[00/10] serial: Use platform_get_irq*() variants to fetch IRQ's

Message ID 20211224142917.6966-1-prabhakar.mahadev-lad.rj@bp.renesas.com
Headers show
Series serial: Use platform_get_irq*() variants to fetch IRQ's | expand

Message

Prabhakar Mahadev Lad Dec. 24, 2021, 2:29 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/

Cheers,
Prabhakar

Lad Prabhakar (10):
  serial: altera: Use platform_get_irq_optional() to get the interrupt
  serial: 8250_bcm7271: Use platform_get_irq() to get the interrupt
  serial: 8250_bcm7271: Propagate error codes from brcmuart_probe()
  serial: meson: Use platform_get_irq() to get the interrupt
  serial: pxa: Use platform_get_irq() to get the interrupt
  serial: altera_jtaguart: Use platform_get_irq_optional() to get the
    interrupt
  serial: vt8500: Use platform_get_irq() to get the interrupt
  serial: ar933x: Use platform_get_irq() to get the interrupt
  serial: bcm63xx: Use platform_get_irq() to get the interrupt
  serial: pmac_zilog: Use platform_get_irq() to get the interrupt

 drivers/tty/serial/8250/8250_bcm7271.c | 23 +++++++++++++----------
 drivers/tty/serial/altera_jtaguart.c   | 11 +++++++----
 drivers/tty/serial/altera_uart.c       |  9 +++++----
 drivers/tty/serial/ar933x_uart.c       | 12 +++++-------
 drivers/tty/serial/bcm63xx_uart.c      | 10 +++++-----
 drivers/tty/serial/meson_uart.c        | 11 ++++++-----
 drivers/tty/serial/pmac_zilog.c        | 12 ++++++++----
 drivers/tty/serial/pxa.c               | 12 ++++++++----
 drivers/tty/serial/vt8500_serial.c     | 12 ++++++++----
 9 files changed, 65 insertions(+), 47 deletions(-)

Comments

Florian Fainelli Dec. 24, 2021, 10:10 p.m. UTC | #1
On 12/24/2021 6:29 AM, 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().
> 
> Signed-off-by: Lad Prabhakar <prabhakar.mahadev-lad.rj@bp.renesas.com>

Acked-by: Florian Fainelli <f.fainelli@gmail.com>