File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -1346,8 +1346,10 @@ static void exynos_iommu_release_device(struct device *dev)
1346
1346
struct iommu_group * group = iommu_group_get (dev );
1347
1347
1348
1348
if (group ) {
1349
+ #ifndef CONFIG_ARM
1349
1350
WARN_ON (owner -> domain !=
1350
1351
iommu_group_default_domain (group ));
1352
+ #endif
1351
1353
exynos_iommu_detach_device (owner -> domain , dev );
1352
1354
iommu_group_put (group );
1353
1355
}
@@ -1398,6 +1400,9 @@ static int exynos_iommu_of_xlate(struct device *dev,
1398
1400
static const struct iommu_ops exynos_iommu_ops = {
1399
1401
.domain_alloc = exynos_iommu_domain_alloc ,
1400
1402
.device_group = generic_device_group ,
1403
+ #ifdef CONFIG_ARM
1404
+ .set_platform_dma_ops = exynos_iommu_release_device ,
1405
+ #endif
1401
1406
.probe_device = exynos_iommu_probe_device ,
1402
1407
.release_device = exynos_iommu_release_device ,
1403
1408
.pgsize_bitmap = SECT_SIZE | LPAGE_SIZE | SPAGE_SIZE ,
You can’t perform that action at this time.
0 commit comments