From: Philippe Retornaz Date: Mon, 14 Oct 2013 08:45:17 +0000 (+0100) Subject: ARM: 7857/1: dma: imx-sdma: setup dma mask X-Git-Tag: v3.13-rc1~104^2~6 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=42536b9f9ce38b07ac213c5f4550301f9a0d251d;p=thirdparty%2Flinux.git 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 Acked-by: Sascha Hauer Acked-by: Vinod Koul Signed-off-by: Russell King --- diff --git a/drivers/dma/imx-sdma.c b/drivers/dma/imx-sdma.c index fc43603cf0bbe..c1fd504cae282 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;