]> git.baikalelectronics.ru Git - kernel.git/commit
drm/msm: Stop using iommu_present()
authorRobin Murphy <robin.murphy@arm.com>
Tue, 5 Apr 2022 14:17:48 +0000 (15:17 +0100)
committerRob Clark <robdclark@chromium.org>
Mon, 11 Apr 2022 16:36:13 +0000 (09:36 -0700)
commitf468a77f6b25139f1eff285d38773dcddfb3c1fc
treed8159211366bd014b0581ff1bbfcab1e7d2bd3a0
parent6f673b8d12c34c74277b1e38e6358a71850e7f2f
drm/msm: Stop using iommu_present()

Even if some IOMMU has registered itself on the platform "bus", that
doesn't necessarily mean it provides translation for the device we
care about. Replace iommu_present() with a more appropriate check.

Signed-off-by: Robin Murphy <robin.murphy@arm.com>
Reviewed-by: Rob Clark <robdclark@gmail.com>
Patchwork: https://patchwork.freedesktop.org/patch/480707/
Link: https://lore.kernel.org/r/5ab4f4574d7f3e042261da702d493ee40d003356.1649168268.git.robin.murphy@arm.com
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Rob Clark <robdclark@chromium.org>
drivers/gpu/drm/msm/msm_drv.c