dmaengine: axi-dmac: Split too large segments
authorLars-Peter Clausen <lars@metafoo.de>
Fri, 8 Mar 2019 13:02:35 +0000 (15:02 +0200)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Mar 2019 16:22:28 +0000 (21:52 +0530)
commit921234e0c5d77b510ccc22d9fcfa844f20de970a
tree49192e92135b54ac1a1564c57687990077de9b7a
parentb45aef3aef63610e75fa67c7ae8b838304bdad3e
dmaengine: axi-dmac: Split too large segments

The axi-dmac driver currently rejects transfers with segments that are
larger than what the hardware can handle.

Re-work the driver so that these large segments are split into multiple
segments instead where each segment is smaller or equal to the maximum
segment size.

This allows the driver to handle transfers with segments of arbitrary size.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Bogdan Togorean <bogdan.togorean@analog.com>
Signed-off-by: Alexandru Ardelean <alex.ardelean@analog.com>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/dma-axi-dmac.c