dmaengine: Add matching device node validation in __dma_request_channel()
authorBaolin Wang <baolin.wang@linaro.org>
Mon, 20 May 2019 11:32:14 +0000 (19:32 +0800)
committerVinod Koul <vkoul@kernel.org>
Mon, 27 May 2019 05:53:52 +0000 (11:23 +0530)
commitf5151311c3f37f6edc85b2253ccf6d3e2a4c4c26
tree9c9a6c10e2377a16f1eb678605546875f210c8e8
parentf935d7dc8125e231e3e1620d97b2367b008889f4
dmaengine: Add matching device node validation in __dma_request_channel()

When user try to request one DMA channel by __dma_request_channel(), it won't
validate if it is the correct DMA device to request, that will lead each DMA
engine driver to validate the correct device node in their filter function
if it is necessary.

Thus we can add the matching device node validation in the DMA engine core,
to remove all of device node validation in the drivers.

Tested-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Baolin Wang <baolin.wang@linaro.org>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dmaengine.c
drivers/dma/of-dma.c
include/linux/dmaengine.h