mirror of
git://nv-tegra.nvidia.com/linux-nv-oot.git
synced 2025-12-24 10:11:26 +03:00
iommu: k5.9: remove archdata.iommu accesses
k5.9 build needs below changes: read archdata.iommu replaced by iommu_get_domain_for_dev write archdata.iommu removed as alternative implementation used. k5.9 build error fixed by explicit include of header <linux/iommu.h> Change-Id: I464fd4144e4317b10aaa5460482f35e46527339a Signed-off-by: Bitan Biswas <bbiswas@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvidia/+/2400862 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com>
This commit is contained in:
committed by
Revanth Kumar Uppala
parent
3dd509ad9c
commit
c86ec7d3e5
@@ -15,6 +15,7 @@
|
||||
*/
|
||||
|
||||
#include <linux/version.h>
|
||||
#include <linux/iommu.h>
|
||||
#include "ether_linux.h"
|
||||
|
||||
/**
|
||||
@@ -3805,7 +3806,7 @@ static int ether_parse_dt(struct ether_priv_data *pdata)
|
||||
}
|
||||
|
||||
/* Check if IOMMU is enabled */
|
||||
if (pdev->dev.archdata.iommu != NULL) {
|
||||
if (iommu_get_domain_for_dev(&pdev->dev) != NULL) {
|
||||
/* Read and set dma-mask from DT only if IOMMU is enabled*/
|
||||
ret = of_property_read_u64(np, "dma-mask", &pdata->dma_mask);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user