From: Pierre-Yves MORDRET Date: Mon, 27 Jan 2020 08:53:33 +0000 (+0100) Subject: dmaengine: stm32-mdma: enable descriptor_reuse X-Git-Tag: v5.10.7~2914^2~71 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=542fbc463aabdd93c2d3db7f604903f357a0ebf8;p=platform%2Fkernel%2Flinux-rpi.git dmaengine: stm32-mdma: enable descriptor_reuse Enable descriptor reuse to allow client to resubmit already processed descriptors in order to save descriptor creation time. Signed-off-by: Pierre-Yves MORDRET Signed-off-by: Amelie Delaunay Link: https://lore.kernel.org/r/20200127085334.13163-6-amelie.delaunay@st.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/stm32-mdma.c b/drivers/dma/stm32-mdma.c index 2dbd1f3..f2043f4 100644 --- a/drivers/dma/stm32-mdma.c +++ b/drivers/dma/stm32-mdma.c @@ -1618,6 +1618,8 @@ static int stm32_mdma_probe(struct platform_device *pdev) dd->device_resume = stm32_mdma_resume; dd->device_terminate_all = stm32_mdma_terminate_all; dd->device_synchronize = stm32_mdma_synchronize; + dd->descriptor_reuse = true; + dd->src_addr_widths = BIT(DMA_SLAVE_BUSWIDTH_1_BYTE) | BIT(DMA_SLAVE_BUSWIDTH_2_BYTES) | BIT(DMA_SLAVE_BUSWIDTH_4_BYTES) |