dmaengine: stm32-dma: use dma_set_max_seg_size to set the sg limit
authorAmelie Delaunay <amelie.delaunay@st.com>
Wed, 29 Jan 2020 15:36:25 +0000 (16:36 +0100)
committerVinod Koul <vkoul@kernel.org>
Tue, 25 Feb 2020 05:45:05 +0000 (11:15 +0530)
commitd7a9e42609cab42bf748a66756270652187df084
tree66b529627e650843e603739ccc890e2dd6b720ee
parent22a0bb297cdca9d02407db603bbed84986ef5c05
dmaengine: stm32-dma: use dma_set_max_seg_size to set the sg limit

This patch adds dma_set_max_seg_size to define sg dma constraint.
This constraint may be taken into account by client to scatter/gather
its buffer.

Signed-off-by: Ludovic Barre <ludovic.barre@st.com>
Signed-off-by: Amelie Delaunay <amelie.delaunay@st.com>
Link: https://lore.kernel.org/r/20200129153628.29329-6-amelie.delaunay@st.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/stm32-dma.c