]> asedeno.scripts.mit.edu Git - linux.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)
commit464aa6f54b093df1ccaff6558207f8bf68a69c37
tree5e85763517793b83e2e0ea1edf533d2ec745e76b
parent12e0177055ee4b5ab656414b32054e64568160d8
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