DMA Engine development
 help / color / mirror / Atom feed
* [PATCHv2 0/2] dmaengine: fsl_raid: fix resource leaks and simplify drvdata handling
@ 2026-07-21 19:54 Rosen Penev
  2026-07-21 19:54 ` [PATCHv2 1/2] dmaengine: fsl_raid: pass platform_device to drvdata Rosen Penev
  2026-07-21 19:54 ` [PATCHv2 2/2] dmaengine: fsl_raid: free resources in probe Rosen Penev
  0 siblings, 2 replies; 7+ messages in thread
From: Rosen Penev @ 2026-07-21 19:54 UTC (permalink / raw)
  To: dmaengine; +Cc: Vinod Koul, Frank Li, Xuelin Shi, Harninder Rai, open list

This series fixes resource leaks in the FSL RAIDEngine driver and
simplifies drvdata handling:

1) Replace dev_get_drvdata/dev_set_drvdata with platform_get_drvdata/
   platform_set_drvdata, since a platform_device is always used. This
   avoids taking a pointer to a platform device member.

2) Add missing free_irq() in error unwind of fsl_re_chan_probe() and in
   fsl_re_remove_chan(). Also add tasklet_kill() and
   of_platform_device_destroy() to properly release all resources.

v2: split into two patches

Rosen Penev (2):
  dmaengine: fsl_raid: pass platform_device to drvdata
  dmaengine: fsl_raid: free resources in probe

 drivers/dma/fsl_raid.c | 33 ++++++++++++++++++++-------------
 drivers/dma/fsl_raid.h |  1 +
 2 files changed, 21 insertions(+), 13 deletions(-)

-- 
2.55.0


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

end of thread, other threads:[~2026-07-21 23:56 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-21 19:54 [PATCHv2 0/2] dmaengine: fsl_raid: fix resource leaks and simplify drvdata handling Rosen Penev
2026-07-21 19:54 ` [PATCHv2 1/2] dmaengine: fsl_raid: pass platform_device to drvdata Rosen Penev
2026-07-21 21:38   ` Frank Li
2026-07-21 19:54 ` [PATCHv2 2/2] dmaengine: fsl_raid: free resources in probe Rosen Penev
2026-07-21 21:43   ` Frank Li
2026-07-21 21:53     ` Rosen Penev
2026-07-21 23:56       ` Frank Li

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