]> git.baikalelectronics.ru Git - kernel.git/commit
dmaengine: sun6i: Retrieve channel count/max request from devicetree
authorStefan Brüns <stefan.bruens@rwth-aachen.de>
Mon, 16 Oct 2017 23:06:34 +0000 (01:06 +0200)
committerVinod Koul <vinod.koul@intel.com>
Mon, 23 Oct 2017 06:14:03 +0000 (11:44 +0530)
commitb34780883a3c05d0a612332f6b6a0edf56fd90cd
tree5e85763517793b83e2e0ea1edf533d2ec745e76b
parent10b6e978f5c2b292cf896f7f9d9ece3de09e53b3
dmaengine: sun6i: Retrieve channel count/max request from devicetree

To avoid introduction of a new compatible for each small SoC/DMA controller
variation, move the definition of the channel count to the devicetree.

The number of vchans is no longer explicit, but limited by the highest
port/DMA request number. The result is a slight overallocation for SoCs
with a sparse port mapping.

Signed-off-by: Stefan Brüns <stefan.bruens@rwth-aachen.de>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
drivers/dma/sun6i-dma.c