Messages in this thread Patch in this message |  | | From | Vishnu Reddy <> | | Date | Tue, 05 May 2026 12:29:26 +0530 | | Subject | [PATCH v4 05/13] iommu: Add iris-vpu-bus to iommu_buses |
| |
From: Vikash Garodia <vikash.garodia@oss.qualcomm.com>
Add iris-vpu-bus to iommu_buses[] to register the bus notifier callbacks for device add and removal events. This ensures that when a device is registered on iris-vpu-bus, the notifier triggers dma_configure(), which sets up the IOMMU context for that device.
Signed-off-by: Vikash Garodia <vikash.garodia@oss.qualcomm.com> Signed-off-by: Vishnu Reddy <busanna.reddy@oss.qualcomm.com> --- drivers/iommu/iommu.c | 4 ++++ 1 file changed, 4 insertions(+)
diff --git a/drivers/iommu/iommu.c b/drivers/iommu/iommu.c index fccdbaf6dbd5..3b65df247e52 100644 --- a/drivers/iommu/iommu.c +++ b/drivers/iommu/iommu.c @@ -13,6 +13,7 @@ #include <linux/bug.h> #include <linux/types.h> #include <linux/init.h> +#include <linux/iris_vpu_bus.h> #include <linux/export.h> #include <linux/slab.h> #include <linux/errno.h> @@ -179,6 +180,9 @@ static const struct bus_type * const iommu_buses[] = { #ifdef CONFIG_CDX_BUS &cdx_bus_type, #endif +#if IS_ENABLED(CONFIG_VIDEO_QCOM_IRIS) + &iris_vpu_bus_type, +#endif }; /* -- 2.34.1
|  |