dmaengine: imx-sdma: fix consistent dma test failures
authorAngus Ainslie (Purism) <angus@akkea.ca>
Mon, 28 Jan 2019 16:03:23 +0000 (09:03 -0700)
committerVinod Koul <vkoul@kernel.org>
Mon, 25 Feb 2019 17:56:05 +0000 (23:26 +0530)
Without the copy being aligned sdma1 fails ~10% of the time

Signed-off-by: Angus Ainslie (Purism) <angus@akkea.ca>
Signed-off-by: Vinod Koul <vkoul@kernel.org>
drivers/dma/imx-sdma.c

index 8fb0cd293b54b20e7db4f754346f432e508ff759..237a9c165072e20ff2782b17f93ac1a23dc4bd07 100644 (file)
@@ -2113,6 +2113,7 @@ static int sdma_probe(struct platform_device *pdev)
        sdma->dma_device.device_prep_dma_memcpy = sdma_prep_memcpy;
        sdma->dma_device.device_issue_pending = sdma_issue_pending;
        sdma->dma_device.dev->dma_parms = &sdma->dma_parms;
+       sdma->dma_device.copy_align = 2;
        dma_set_max_seg_size(sdma->dma_device.dev, SDMA_BD_MAX_CNT);
 
        platform_set_drvdata(pdev, sdma);