summaryrefslogtreecommitdiffstats
path: root/drivers/dma/imx-sdma.c
diff options
context:
space:
mode:
authorPhilippe Retornaz <philippe.retornaz@epfl.ch>2013-10-14 09:45:17 +0100
committerRussell King <rmk+kernel@arm.linux.org.uk>2013-10-31 14:49:19 +0000
commit42536b9f9ce38b07ac213c5f4550301f9a0d251d (patch)
treea8edbb43be71289cf56bf43713435735de7d0b38 /drivers/dma/imx-sdma.c
parent536dc1eb6bc36db6a03e002b421a0b473404b397 (diff)
downloadlinux-42536b9f9ce38b07ac213c5f4550301f9a0d251d.tar.gz
linux-42536b9f9ce38b07ac213c5f4550301f9a0d251d.tar.bz2
linux-42536b9f9ce38b07ac213c5f4550301f9a0d251d.zip
ARM: 7857/1: dma: imx-sdma: setup dma mask
The dma mask is not configured in the current code. This was triggered by soc-dmaengine-pcm which allocate the dma buffers with the imx-sdma as device. This commit fix audio on imx31. Signed-off-by: Philippe Rétornaz <philippe.retornaz@epfl.ch> Acked-by: Sascha Hauer <s.hauer@pengutronix.de> Acked-by: Vinod Koul <vinod.koul@intel.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'drivers/dma/imx-sdma.c')
-rw-r--r--drivers/dma/imx-sdma.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c
index fc43603cf0bb..c1fd504cae28 100644
--- a/drivers/dma/imx-sdma.c
+++ b/drivers/dma/imx-sdma.c
@@ -1432,6 +1432,10 @@ static int __init sdma_probe(struct platform_device *pdev)
return -EINVAL;
}
+ ret = dma_coerce_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
+ if (ret)
+ return ret;
+
sdma = kzalloc(sizeof(*sdma), GFP_KERNEL);
if (!sdma)
return -ENOMEM;