[PATCH v2 0/4] dmaengine: stm32-dma3: improvements and helper functions

Amelie Delaunay posted 4 patches 2 months, 2 weeks ago
drivers/dma/stm32/stm32-dma3.c | 165 +++++++++++++++++++++++++++++++++--------
1 file changed, 136 insertions(+), 29 deletions(-)
[PATCH v2 0/4] dmaengine: stm32-dma3: improvements and helper functions
Posted by Amelie Delaunay 2 months, 2 weeks ago
This series introduces improvements and helper functions for channel
and driver management.

It enables proper unloading of the stm32_dma3 module, replacing the
previous subsys_initcall() mechanism with module_plaform_driver().

It introduces helper functions to take and release the channel semaphore,
and restores the semaphore state on resume, considering the possible
reset of CxSEMCR register during suspend.

It also adds a helper to retrieve the device pointer from the dma_device
structure contained in stm32_dma3_ddata, simplifying the code.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
---
Changes in v2:
- Refine PATCH 4/4 commit description and remove unintended blank line
- Collect Reviewed-by tag
- Link to v1: https://lore.kernel.org/r/20251103-dma3_improv-v1-0-57f048bf2877@foss.st.com

---
Amelie Delaunay (4):
      dmaengine: stm32-dma3: use module_platform_driver
      dmaengine: stm32-dma3: introduce channel semaphore helpers
      dmaengine: stm32-dma3: restore channel semaphore status after suspend
      dmaengine: stm32-dma3: introduce ddata2dev helper

 drivers/dma/stm32/stm32-dma3.c | 165 +++++++++++++++++++++++++++++++++--------
 1 file changed, 136 insertions(+), 29 deletions(-)
---
base-commit: 398035178503bf662281bbffb4bebce1460a4bc5
change-id: 20251103-dma3_improv-b4b36ee231e4

Best regards,
-- 
Amelie Delaunay <amelie.delaunay@foss.st.com>
Re: [PATCH v2 0/4] dmaengine: stm32-dma3: improvements and helper functions
Posted by Vinod Koul 1 month, 3 weeks ago
On Fri, 21 Nov 2025 14:36:55 +0100, Amelie Delaunay wrote:
> This series introduces improvements and helper functions for channel
> and driver management.
> 
> It enables proper unloading of the stm32_dma3 module, replacing the
> previous subsys_initcall() mechanism with module_plaform_driver().
> 
> It introduces helper functions to take and release the channel semaphore,
> and restores the semaphore state on resume, considering the possible
> reset of CxSEMCR register during suspend.
> 
> [...]

Applied, thanks!

[1/4] dmaengine: stm32-dma3: use module_platform_driver
      commit: 0d41ed4ea496fabbb4dc21171e32d9a924c2a661
[2/4] dmaengine: stm32-dma3: introduce channel semaphore helpers
      commit: d26eb4a75a4a2bbf27305e62ad82cedf5f8c577c
[3/4] dmaengine: stm32-dma3: restore channel semaphore status after suspend
      commit: dea737e31c2c62df5a45871bfb4ceb90a112dbd8
[4/4] dmaengine: stm32-dma3: introduce ddata2dev helper
      commit: 8be4f3cbe263d22053d7afea4efee2e7178eee21

Best regards,
-- 
~Vinod