mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/8] irqchip/imx-intmux: Fix and modernize resource management
@ 2026-11-17  7:14 Peng Fan
  2026-11-17  7:14 ` [PATCH 1/8] irqchip/imx-intmux: Fix probe error path Peng Fan
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Peng Fan @ 2026-11-17  7:14 UTC (permalink / raw)
  To: Thomas Gleixner, Radu Rendec, Frank Li, Sascha Hauer,
	Pengutronix Kernel Team, Fabio Estevam, Shengjiu Wang,
	Marc Zyngier
  Cc: linux-kernel, imx, linux-arm-kernel, Peng Fan

When I worked on guard_chained_irq patch, sashiko reported pre-exist
issues in imx-intmux driver. So I gave a look on this driver and found
more that need to be addressed.

The first two patches fix the error and removal paths. Probe failures
leaked IRQ domains and mappings and left the already-installed chained
handlers pointing into driver data that was about to be freed, while the
remove path never released the child or parent IRQ mappings.

The next three patches tighten the device-tree input handling: propagate
all errors from platform_irq_count() instead of carrying a negative
channel count into devm_kzalloc_flex(), reject a zero channel count,
stop WARNing on malformed interrupt specifiers that can come from
user-supplied DT, and mark the multiplexed interrupts as level-triggered
to match handle_level_irq() and the type advertised by xlate().

The last three patches convert the IPG clock, the per-channel IRQ
domains and runtime PM to their device-managed variants. This removes
the manual probe/remove/error-path teardown while preserving the
existing runtime suspend/resume behavior, including gating the clock
after probe.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
Peng Fan (8):
      irqchip/imx-intmux: Fix probe error path
      irqchip/imx-intmux: Dispose IRQ mappings on remove
      irqchip/imx-intmux: Handle platform_irq_count() errors
      irqchip/imx-intmux: Don't WARN on malformed interrupt specifiers
      irqchip/imx-intmux: Mark input interrupts as level-triggered
      irqchip/imx-intmux: Use devm_clk_get_enabled()
      irqchip/imx-intmux: Use devm_irq_domain_create_linear()
      irqchip/imx-intmux: Use devm_pm_runtime_set_active_enabled()

 drivers/irqchip/irq-imx-intmux.c | 57 ++++++++++++++++++++++------------------
 1 file changed, 31 insertions(+), 26 deletions(-)
---
base-commit: 84abb955b1015477aa11a96e2f3ac1b938b77f48
change-id: 20261116-imx-intmux-7bebdcb8c20b

Best regards,
-- 
Peng Fan <peng.fan@nxp.com>


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

end of thread, other threads:[~2026-11-17 13:27 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-17  7:14 [PATCH 0/8] irqchip/imx-intmux: Fix and modernize resource management Peng Fan
2026-11-17  7:14 ` [PATCH 1/8] irqchip/imx-intmux: Fix probe error path Peng Fan
2026-11-17  7:14 ` [PATCH 2/8] irqchip/imx-intmux: Dispose IRQ mappings on remove Peng Fan
2026-11-17  7:14 ` [PATCH 3/8] irqchip/imx-intmux: Handle platform_irq_count() errors Peng Fan
2026-11-17  7:14 ` [PATCH 4/8] irqchip/imx-intmux: Don't WARN on malformed interrupt specifiers Peng Fan
2026-11-17  7:14 ` [PATCH 5/8] irqchip/imx-intmux: Mark input interrupts as level-triggered Peng Fan
2026-11-17  7:14 ` [PATCH 6/8] irqchip/imx-intmux: Use devm_clk_get_enabled() Peng Fan
2026-11-17  7:14 ` [PATCH 7/8] irqchip/imx-intmux: Use devm_irq_domain_create_linear() Peng Fan
2026-11-17  7:14 ` [PATCH 8/8] irqchip/imx-intmux: Use devm_pm_runtime_set_active_enabled() Peng Fan
2026-11-17 13:27 ` [PATCH 0/8] irqchip/imx-intmux: Fix and modernize resource management Peng Fan

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

all inboxes | Powered by JetHome®