Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 42536b9f authored by Philippe Retornaz's avatar Philippe Retornaz Committed by Russell King
Browse files

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: default avatarPhilippe Rétornaz <philippe.retornaz@epfl.ch>
Acked-by: default avatarSascha Hauer <s.hauer@pengutronix.de>
Acked-by: default avatarVinod Koul <vinod.koul@intel.com>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent 536dc1eb
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -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;