We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f956c9 commit b7875ebCopy full SHA for b7875eb
drivers/iommu/mtk_iommu.c
@@ -353,6 +353,10 @@ static int mtk_iommu_domain_finalise(struct mtk_iommu_domain *dom,
353
354
/* Update our support page sizes bitmap */
355
dom->domain.pgsize_bitmap = dom->cfg.pgsize_bitmap;
356
+
357
+ dom->domain.geometry.aperture_start = 0;
358
+ dom->domain.geometry.aperture_end = DMA_BIT_MASK(32);
359
+ dom->domain.geometry.force_aperture = true;
360
return 0;
361
}
362
@@ -372,9 +376,6 @@ static struct iommu_domain *mtk_iommu_domain_alloc(unsigned type)
372
376
return NULL;
373
377
374
378
375
- dom->domain.geometry.aperture_start = 0;
- dom->domain.geometry.aperture_end = DMA_BIT_MASK(32);
- dom->domain.geometry.force_aperture = true;
379
return &dom->domain;
380
381
0 commit comments