Loading drivers/iommu/arm-smmu.c +10 −0 Original line number Diff line number Diff line Loading @@ -2088,6 +2088,16 @@ static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) return -ENXIO; } /* * FIXME: The arch/arm DMA API code tries to attach devices to its own * domains between of_xlate() and add_device() - we have no way to cope * with that, so until ARM gets converted to rely on groups and default * domains, just say no (but more politely than by dereferencing NULL). * This should be at least a WARN_ON once that's sorted. */ if (!fwspec->iommu_priv) return -ENODEV; smmu = fwspec_smmu(fwspec); /* Enable Clocks and Power */ Loading Loading
drivers/iommu/arm-smmu.c +10 −0 Original line number Diff line number Diff line Loading @@ -2088,6 +2088,16 @@ static int arm_smmu_attach_dev(struct iommu_domain *domain, struct device *dev) return -ENXIO; } /* * FIXME: The arch/arm DMA API code tries to attach devices to its own * domains between of_xlate() and add_device() - we have no way to cope * with that, so until ARM gets converted to rely on groups and default * domains, just say no (but more politely than by dereferencing NULL). * This should be at least a WARN_ON once that's sorted. */ if (!fwspec->iommu_priv) return -ENODEV; smmu = fwspec_smmu(fwspec); /* Enable Clocks and Power */ Loading