Re: [PATCH] dmaengine: stm32-mdma: check the channel availability (secure or not)
From: Vinod Koul
Date: Mon Apr 11 2022 - 09:28:40 EST
On 30-03-22, 12:36, Amelie Delaunay wrote:
> STM32_MDMA_CCR bit[8] is used to enable Secure Mode (SM). If this bit is
> set, it means that all the channel registers are write-protected. So the
> channel is not available for Linux use.
>
> Add stm32_mdma_filter_fn() callback filter and give it to
> __dma_request_chan (instead of dma_get_any_slave_channel()), to exclude the
> channel if it is marked Secure.
Applied, thanks
--
~Vinod