public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] irqchip/renesas-rzg2l: Bug fixes and NMI support
@ 2026-03-28 10:33 Biju
  2026-03-28 10:33 ` [PATCH 1/3] irqchip/renesas-rzg2l: Fix shared IRQ bit not cleared on free Biju
                   ` (2 more replies)
  0 siblings, 3 replies; 13+ messages in thread
From: Biju @ 2026-03-28 10:33 UTC (permalink / raw)
  To: Thomas Gleixner
  Cc: Biju Das, linux-kernel, Geert Uytterhoeven, Prabhakar Mahadev Lad,
	Biju Das, linux-renesas-soc

From: Biju Das <biju.das.jz@bp.renesas.com>

This series contains two bug fixes and a new feature for the Renesas
RZ/G2L IRQC driver.

Patch 1 fixes a bug where the shared IRQ bit is not cleared on free.
When irq_domain_free_irqs_common() is called, it internally resets
irq_data->hwirq to 0 via irq_domain_reset_irq_data(). The fix caches hwirq
before calling irq_domain_free_irqs_common().

Patch 2 simplifies the locking logic in rzg2l_irq_set_type() by replacing
the open-coded raw_spin_{lock,unlock} pair with guard(), and adds the
missing cleanup.h header.

Patch 3 adds NMI support, introducing a dedicated IRQ chip with EOI
handling, trigger type configuration, and suspend/resume support.

NMI Testing on RZ/G3L SMARC EVK:
:~# cat /proc/interrupts | grep NMI
 59:          0          0          0          0 rzg2l-irqc   0 Edge      NMI

Pull down GP_INT# line on green pack device by I2C command
:~# i2cset -y  -f 0 0x38 0x30 0x00; sleep 1; i2cset -y  -f 0 0x38 0x30 0x18

:~# cat /proc/interrupts | grep NMI
 59:          1          0          0          0 rzg2l-irqc   0 Edge      NMI
root@smarc-rzg3l:~#

Biju Das (3):
  irqchip/renesas-rzg2l: Fix shared IRQ bit not cleared on free
  irqchip/renesas-rzg2l: Replace raw_spin_{lock,unlock} with guard() in
    rzg2l_irq_set_type()
  irqchip/renesas-rzg2l: Add NMI support

 drivers/irqchip/irq-renesas-rzg2l.c | 105 +++++++++++++++++++++++++---
 1 file changed, 97 insertions(+), 8 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-04-01 11:22 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-28 10:33 [PATCH 0/3] irqchip/renesas-rzg2l: Bug fixes and NMI support Biju
2026-03-28 10:33 ` [PATCH 1/3] irqchip/renesas-rzg2l: Fix shared IRQ bit not cleared on free Biju
2026-03-31 17:26   ` [tip: irq/drivers] irqchip/renesas-rzg2l: Clear the shared interrupt bit in rzg2l_irqc_free() tip-bot2 for Biju Das
2026-03-28 10:33 ` [PATCH 2/3] irqchip/renesas-rzg2l: Replace raw_spin_{lock,unlock} with guard() in rzg2l_irq_set_type() Biju
2026-03-28 13:20   ` [tip: irq/drivers] " tip-bot2 for Biju Das
2026-03-28 10:33 ` [PATCH 3/3] irqchip/renesas-rzg2l: Add NMI support Biju
2026-03-28 16:19   ` Wolfram Sang
2026-03-31 17:35     ` Biju Das
2026-03-31 16:15   ` Thomas Gleixner
2026-03-31 17:10     ` Biju Das
2026-03-31 20:29       ` Thomas Gleixner
2026-04-01  7:30         ` Biju Das
2026-04-01 11:22           ` Thomas Gleixner

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox