]> git.ipfire.org Git - thirdparty/linux.git/commit
dmaengine: stm32-dma3: introduce channel semaphore helpers
authorAmelie Delaunay <amelie.delaunay@foss.st.com>
Fri, 21 Nov 2025 13:36:57 +0000 (14:36 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 16 Dec 2025 16:06:31 +0000 (21:36 +0530)
commitd26eb4a75a4a2bbf27305e62ad82cedf5f8c577c
tree806557d0e1779646a3e68339bcbe9a214d7a7cc6
parent0d41ed4ea496fabbb4dc21171e32d9a924c2a661
dmaengine: stm32-dma3: introduce channel semaphore helpers

Before restoring semaphore status after suspend, introduce new functions
to handle semaphore operations :
- stm32_dma3_get_chan_sem() to take the semaphore
- stm32_dma3_put_chan_sem() to release the semaphore
Also, use a new boolean variable semaphore_taken, which is true when the
semaphore has been taken and false when it has been released.

Signed-off-by: Amelie Delaunay <amelie.delaunay@foss.st.com>
Link: https://patch.msgid.link/20251121-dma3_improv-v2-2-76a207b13ea6@foss.st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32/stm32-dma3.c