From: Amelie Delaunay Date: Wed, 29 Jan 2020 15:36:26 +0000 (+0100) Subject: dmaengine: stm32-dma: add copy_align constraint X-Git-Tag: v5.15~4168^2~59 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=32ce108833a8424c686d9f82db231a6039290d41;p=platform%2Fkernel%2Flinux-starfive.git dmaengine: stm32-dma: add copy_align constraint This patch adds copy_align property in accordance with hardware restriction. Signed-off-by: Ludovic Barre Signed-off-by: Amelie Delaunay Link: https://lore.kernel.org/r/20200129153628.29329-7-amelie.delaunay@st.com Signed-off-by: Vinod Koul --- diff --git a/drivers/dma/stm32-dma.c b/drivers/dma/stm32-dma.c index b7e18cf..01a2374 100644 --- a/drivers/dma/stm32-dma.c +++ b/drivers/dma/stm32-dma.c @@ -1345,6 +1345,7 @@ static int stm32_dma_probe(struct platform_device *pdev) BIT(DMA_SLAVE_BUSWIDTH_4_BYTES); dd->directions = BIT(DMA_DEV_TO_MEM) | BIT(DMA_MEM_TO_DEV); dd->residue_granularity = DMA_RESIDUE_GRANULARITY_BURST; + dd->copy_align = DMAENGINE_ALIGN_32_BYTES; dd->max_burst = STM32_DMA_MAX_BURST; dd->descriptor_reuse = true; dd->dev = &pdev->dev;