media: smfc: set dma mask of 36-bit
authorCho KyongHo <pullip.cho@samsung.com>
Wed, 21 Feb 2018 01:58:50 +0000 (10:58 +0900)
committerSeungchul Kim <sc377.kim@samsung.com>
Mon, 28 May 2018 05:31:24 +0000 (14:31 +0900)
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 <pullip.cho@samsung.com>
drivers/media/platform/exynos/smfc/smfc.c

index 050559b6d74bfff084e1a9bc585ebd0fa8ad36c7..6f5aae8e3a2176c8fd826746d5610bf6c536a5bf 100644 (file)
@@ -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))