[PATCH] dmaengine: stm32-mdma: check the channel availability (secure or not)

Vinod Koul vkoul at kernel.org
Mon Apr 11 06:28:30 PDT 2022


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



More information about the linux-arm-kernel mailing list