projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
iommu/arm-smmu-v3: Parse PASID devicetree property of platform devices
[linux-2.6-microblaze.git]
/
drivers
/
iommu
/
of_iommu.c
diff --git
a/drivers/iommu/of_iommu.c
b/drivers/iommu/of_iommu.c
index
e7bc8b7
..
20738aa
100644
(file)
--- a/
drivers/iommu/of_iommu.c
+++ b/
drivers/iommu/of_iommu.c
@@
-203,8
+203,12
@@
const struct iommu_ops *of_iommu_configure(struct device *dev,
if (err)
break;
}
- }
+ fwspec = dev_iommu_fwspec_get(dev);
+ if (!err && fwspec)
+ of_property_read_u32(master_np, "pasid-num-bits",
+ &fwspec->num_pasid_bits);
+ }
/*
* Two success conditions can be represented by non-negative err here: