From: Cho KyongHo Date: Wed, 21 Feb 2018 01:58:50 +0000 (+0900) Subject: media: smfc: set dma mask of 36-bit X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8fa0b88d4ede26ea64d806588445d99edae84248;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git media: smfc: set dma mask of 36-bit SMFC driver needs to configure dma mask of 36-bit not to force allocation of swiotlb buffers during dma-mapping. Change-Id: I2cb2637462703d4c113f855b95bef4cafffd79ff Signed-off-by: Cho KyongHo --- diff --git a/drivers/media/platform/exynos/smfc/smfc.c b/drivers/media/platform/exynos/smfc/smfc.c index 050559b6d74b..6f5aae8e3a21 100644 --- a/drivers/media/platform/exynos/smfc/smfc.c +++ b/drivers/media/platform/exynos/smfc/smfc.c @@ -877,6 +877,8 @@ static int exynos_smfc_probe(struct platform_device *pdev) smfc->dev = &pdev->dev; + dma_set_mask(&pdev->dev, DMA_BIT_MASK(36)); + res = platform_get_resource(pdev, IORESOURCE_MEM, 0); smfc->reg = devm_ioremap_resource(&pdev->dev, res); if (IS_ERR(smfc->reg))