]> www.infradead.org Git - users/dwmw2/linux.git/commit
dmaengine: fsl-edma: change to guard(mutex) within fsl_edma3_xlate()
authorJoy Zou <joy.zou@nxp.com>
Mon, 1 Jul 2024 07:02:31 +0000 (15:02 +0800)
committerVinod Koul <vkoul@kernel.org>
Thu, 29 Aug 2024 17:20:48 +0000 (22:50 +0530)
commit90d21f6e57a898ef02810404dd3866acaf707ebf
treea699ba9a843a139c24e6b18d8f2c5667e3d79c2d
parentae04342b5264fcf90a288a984a69ffb9e93904a7
dmaengine: fsl-edma: change to guard(mutex) within fsl_edma3_xlate()

Introduce a scope guard to automatically unlock the mutex within
fsl_edma3_xlate() to simplify the code.

Prepare to add source ID checks in the future.

Signed-off-by: Joy Zou <joy.zou@nxp.com>
Reviewed-by: Frank Li <Frank.Li@nxp.com>
Link: https://lore.kernel.org/r/20240701070232.2519179-2-joy.zou@nxp.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/fsl-edma-main.c