]> 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)
commitc65fe6d2dcfc0f8163fdb5e6f81dae6d8b86015a
tree5e85763517793b83e2e0ea1edf533d2ec745e76b
parent6e5ca609d96dd46b652a18e540e7350b98b8c805
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