Loading drivers/iommu/of_iommu.c +8 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,14 @@ static int of_iommu_xlate(struct device *dev, int err; ops = iommu_ops_from_fwnode(fwnode); /* * Return -EPROBE_DEFER for the platform devices which are dependent * on the SMMU driver registration. Deferring from here helps in adding * the clients in proper iommu groups. */ if (!dev_is_pci(dev) && of_device_is_available(iommu_spec->np) && !ops) return -EPROBE_DEFER; if ((ops && !ops->of_xlate) || !of_device_is_available(iommu_spec->np) || (!ops && !of_iommu_driver_present(iommu_spec->np))) Loading Loading
drivers/iommu/of_iommu.c +8 −0 Original line number Diff line number Diff line Loading @@ -119,6 +119,14 @@ static int of_iommu_xlate(struct device *dev, int err; ops = iommu_ops_from_fwnode(fwnode); /* * Return -EPROBE_DEFER for the platform devices which are dependent * on the SMMU driver registration. Deferring from here helps in adding * the clients in proper iommu groups. */ if (!dev_is_pci(dev) && of_device_is_available(iommu_spec->np) && !ops) return -EPROBE_DEFER; if ((ops && !ops->of_xlate) || !of_device_is_available(iommu_spec->np) || (!ops && !of_iommu_driver_present(iommu_spec->np))) Loading