dmaengine: ti: edma: Add support for handling reserved channels
authorPeter Ujfalusi <peter.ujfalusi@ti.com>
Fri, 25 Oct 2019 07:30:56 +0000 (10:30 +0300)
committerVinod Koul <vkoul@kernel.org>
Tue, 5 Nov 2019 17:00:28 +0000 (22:30 +0530)
commit31f4b28f6c41f734957ea66ac84c6abb69e696f0
treed2ed7460597efcab4f329ee01221fbd898c0ae3f
parent115b60a93ee4e29e103c4bf067aeab45c6d51725
dmaengine: ti: edma: Add support for handling reserved channels

Like paRAM slots, channels could be used by other cores and in this case
we need to make sure that the driver do not alter these channels.

Handle the generic dma-channel-mask property to mark channels in a bitmap
which can not be used by Linux and convert the legacy rsv_chans if it is
provided by platform_data.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Link: https://lore.kernel.org/r/20191025073056.25450-4-peter.ujfalusi@ti.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/ti/edma.c