All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] drm/tegra: Stop using iommu_present()
@ 2022-04-05 14:19 ` Robin Murphy
  0 siblings, 0 replies; 15+ messages in thread
From: Robin Murphy @ 2022-04-05 14:19 UTC (permalink / raw)
  To: thierry.reding; +Cc: linux-tegra, iommu, dri-devel, jonathanh

Remove the pointless check. host1x_drm_wants_iommu() cannot return true
unless an IOMMU exists for the host1x platform device, which at the moment
means the iommu_present() test could never fail.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
---
 drivers/gpu/drm/tegra/drm.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c
index 9464f522e257..bc4321561400 100644
--- a/drivers/gpu/drm/tegra/drm.c
+++ b/drivers/gpu/drm/tegra/drm.c
@@ -1149,7 +1149,7 @@ static int host1x_drm_probe(struct host1x_device *dev)
 		goto put;
 	}
 
-	if (host1x_drm_wants_iommu(dev) && iommu_present(&platform_bus_type)) {
+	if (host1x_drm_wants_iommu(dev)) {
 		tegra->domain = iommu_domain_alloc(&platform_bus_type);
 		if (!tegra->domain) {
 			err = -ENOMEM;
-- 
2.28.0.dirty

_______________________________________________
iommu mailing list
iommu@lists.linux-foundation.org
https://lists.linuxfoundation.org/mailman/listinfo/iommu

^ permalink raw reply related	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2022-04-08 17:53 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-04-05 14:19 [PATCH] drm/tegra: Stop using iommu_present() Robin Murphy
2022-04-05 14:19 ` Robin Murphy
2022-04-05 14:19 ` Robin Murphy
2022-04-06 14:32 ` Dmitry Osipenko
2022-04-06 14:32   ` Dmitry Osipenko
2022-04-06 14:32   ` Dmitry Osipenko
2022-04-06 18:06   ` Robin Murphy
2022-04-06 18:06     ` Robin Murphy
2022-04-06 18:06     ` Robin Murphy
2022-04-07 17:51     ` Dmitry Osipenko
2022-04-07 17:51       ` Dmitry Osipenko
2022-04-07 17:51       ` Dmitry Osipenko
2022-04-08 17:53       ` Robin Murphy
2022-04-08 17:53         ` Robin Murphy
2022-04-08 17:53         ` Robin Murphy

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.