mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/3] memory: fsl_ifc: Switch to modern devm and platform IRQ APIs
@ 2026-06-04  4:28 Rosen Penev
  2026-06-04  4:28 ` [PATCH 1/3] memory: fsl_ifc: Fix optional NAND IRQ handling and migrate to platform IRQ API Rosen Penev
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Rosen Penev @ 2026-06-04  4:28 UTC (permalink / raw)
  To: linux-kernel; +Cc: Krzysztof Kozlowski

Convert the Freescale IFC controller driver from legacy OF-specific
APIs to modern platform-device and devm-based equivalents. This
eliminates manual resource tracking in error paths and remove(),
simplifying the driver and reducing LoC by ~40%.

Patch 1 replaces irq_of_parse_and_map() with platform_get_irq() /
platform_get_irq_optional() and fixes unconditional free_irq() calls
on the optional NAND IRQ.
Patch 2 replaces of_iomap() with devm_platform_ioremap_resource(),
dropping the manual iounmap in remove/error paths and fixing a
missing free_irq on the main IRQ request_irq failure.
Patch 3 switches from request_irq to devm_request_irq, removing the
error-path labels entirely and reducing remove() to just
of_platform_depopulate.

Rosen Penev (3):
  memory: fsl_ifc: Fix optional NAND IRQ handling and migrate to
    platform IRQ API
  memory: fsl_ifc: Use devm_platform_ioremap_resource and fix error
    paths
  memory: fsl_ifc: Use devm_request_irq and simplify remove

 drivers/memory/fsl_ifc.c | 68 ++++++++++++----------------------------
 1 file changed, 20 insertions(+), 48 deletions(-)

-- 
2.54.0


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

end of thread, other threads:[~2026-07-15  4:35 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-06-04  4:28 [PATCH 0/3] memory: fsl_ifc: Switch to modern devm and platform IRQ APIs Rosen Penev
2026-06-04  4:28 ` [PATCH 1/3] memory: fsl_ifc: Fix optional NAND IRQ handling and migrate to platform IRQ API Rosen Penev
2026-07-08 11:02   ` Krzysztof Kozlowski
2026-07-08 19:28     ` Rosen Penev
2026-06-04  4:28 ` [PATCH 2/3] memory: fsl_ifc: Use devm_platform_ioremap_resource and fix error paths Rosen Penev
2026-06-04  4:28 ` [PATCH 3/3] memory: fsl_ifc: Use devm_request_irq and simplify remove Rosen Penev
2026-07-08 11:04   ` Krzysztof Kozlowski
2026-07-08 19:37     ` Rosen Penev
2026-07-09  7:11       ` Krzysztof Kozlowski
2026-07-14 20:44         ` Rosen Penev
2026-07-15  4:34           ` Krzysztof Kozlowski

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