Skip to content

Commit c5a761e

Browse files
rmurphy-armChun-Kuang Hu
authored andcommitted
drm/mediatek: Stop using iommu_present()
Remove the pointless check. If an IOMMU is providing transparent DMA API ops for any device(s) we care about, the DT code will have enforced the appropriate probe ordering already. And if the IOMMU *is* entirely absent, then attempting to go ahead with CMA and either suceeding or failing decisively seems more useful than deferring forever. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://patchwork.kernel.org/project/dri-devel/patch/fd1b62aa006556f29f37535814abfe41be63f7ae.1700746094.git.robin.murphy@arm.com/ Signed-off-by: Chun-Kuang Hu <chunkuang.hu@kernel.org>
1 parent 3e743b0 commit c5a761e

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

drivers/gpu/drm/mediatek/mtk_drm_drv.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
*/
66

77
#include <linux/component.h>
8-
#include <linux/iommu.h>
98
#include <linux/module.h>
109
#include <linux/of.h>
1110
#include <linux/of_platform.h>
@@ -608,9 +607,6 @@ static int mtk_drm_bind(struct device *dev)
608607
struct drm_device *drm;
609608
int ret, i;
610609

611-
if (!iommu_present(&platform_bus_type))
612-
return -EPROBE_DEFER;
613-
614610
pdev = of_find_device_by_node(private->mutex_node);
615611
if (!pdev) {
616612
dev_err(dev, "Waiting for disp-mutex device %pOF\n",

0 commit comments

Comments
 (0)