Skip to content

Commit 7d35584

Browse files
YongWu-HFjoergroedel
authored andcommitted
media: mtk-jpegdec: Remove the setting for dma_mask
In order to simplify the masters to set their respective dma masks, MTK IOMMU helps to centralize the processing. Because all the dma ranges is set in IOMMU, IOMMU knows well the dma mask requirements of masters. After this patch, the masters code does not need care dma-ranges/dma_mask related information. Cc: Bin Liu <bin.liu@mediatek.com> Cc: Mauro Carvalho Chehab <mchehab@kernel.org> Cc: kyrie wu <kyrie.wu@mediatek.com> Signed-off-by: Yong Wu <yong.wu@mediatek.com> Acked-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20230411093144.2690-11-yong.wu@mediatek.com Signed-off-by: Joerg Roedel <jroedel@suse.de>
1 parent f7da2da commit 7d35584

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

drivers/media/platform/mediatek/jpeg/mtk_jpeg_core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1757,9 +1757,6 @@ static int mtk_jpeg_probe(struct platform_device *pdev)
17571757
jpeg->vdev->device_caps = V4L2_CAP_STREAMING |
17581758
V4L2_CAP_VIDEO_M2M_MPLANE;
17591759

1760-
if (of_get_property(pdev->dev.of_node, "dma-ranges", NULL))
1761-
dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(34));
1762-
17631760
ret = video_register_device(jpeg->vdev, VFL_TYPE_VIDEO, -1);
17641761
if (ret) {
17651762
v4l2_err(&jpeg->v4l2_dev, "Failed to register video device\n");

0 commit comments

Comments
 (0)