dmaengine: imx-sdma: fix consistent dma test failures

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>
This commit is contained in:
Angus Ainslie (Purism) 2019-01-28 09:03:23 -07:00 committed by Vinod Koul
parent de7b7dca87
commit a3711d49be
1 changed files with 1 additions and 0 deletions

View 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);