iommu/arm-smmu-v3: Parse PASID devicetree property of platform devices
[linux-2.6-microblaze.git] / drivers / iommu / of_iommu.c
index e7bc8b7..20738aa 100644 (file)
@@ -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: