diff options
author | Angus Ainslie (Purism) <angus@akkea.ca> | 2019-01-28 09:03:23 -0700 |
---|---|---|
committer | Vinod Koul <vkoul@kernel.org> | 2019-02-25 23:26:05 +0530 |
commit | a3711d49beb0768a4df852914676d13fd534a84d (patch) | |
tree | 2f888707073a8bd74071bb284caaf8da304e59bb /drivers/dma/imx-sdma.c | |
parent | de7b7dca8735f720793dae8ad818091309979c39 (diff) | |
download | linux-a3711d49beb0768a4df852914676d13fd534a84d.tar.bz2 |
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>
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r-- | drivers/dma/imx-sdma.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index 8fb0cd293b54..237a9c165072 100644 --- a/drivers/dma/imx-sdma.c +++ b/drivers/dma/imx-sdma.c @@ -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); |