[PATCHv2 0/9] dma: mv_xor: convert to devm resource management
From: Rosen Penev
Date: Thu Jun 11 2026 - 17:08:23 EST
Convert the mv_xor driver to use managed device resources (devm)
to simplify error handling and removal paths.
Patch 5 replaces the open-coded clock acquire/enable/disable/put
with devm_clk_get_optional_enabled, eliminating manual clock
cleanup in the probe error path.
Patch 6 adds the missing platform remove callback so that
channels, DMA devices, and IRQs are properly cleaned up on
driver unbind.
Patch 7 converts DMA pool allocation and IRQ requests to their
devm counterparts, allowing removal of the err_free_irq and
err_free_dma error labels.
v2: add more sashiko fixes.
Rosen Penev (9):
dmaengine: mv_xor: initialize chan state before requesting IRQ
dmaengine: mv_xor: fix use-after-free in probe error path
dmaengine: mv_xor: bound maximum channels for Armada 37xx
dmaengine: mv_xor: abort channel before freeing resources on timeout
dmaengine: mv_xor: use devm_clk_get_optional_enabled
dmaengine: mv_xor: switch to of_irq_get()
dmaengine: mv_xor: use devm for dma pool and irq
dmaengine: mv_xor: allocate dummy buffers with dmam_alloc_coherent
dmaengine: mv_xor: add missing platform remove function
drivers/dma/mv_xor.c | 161 +++++++++++++++++++++----------------------
drivers/dma/mv_xor.h | 4 +-
2 files changed, 81 insertions(+), 84 deletions(-)
--
2.54.0