aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iommu
diff options
context:
space:
mode:
authorRobin Murphy <robin.murphy@arm.com>2015-07-22 13:47:00 -0400
committerJoerg Roedel <jroedel@suse.de>2015-08-03 10:07:49 -0400
commit7b0ce727bf7ac5240a433109f53bf78788f9159b (patch)
tree08b6824b5c96d58d0045aa65d61d7cc46592b0c5 /drivers/iommu
parent74d33293e467df61de1b1d8b2fbe29e550dec33b (diff)
of: iommu: Silence misleading warning
Printing "IOMMU is currently not supported for PCI" for every PCI device probed on a DT-based system proves to be both irritatingly noisy and confusing to users who have misinterpreted it to mean they can no longer use VFIO device assignment. Since configuring DMA masks for PCI devices via of_dma_configure() has not in fact changed anything with regard to IOMMUs there really is nothing to warn about here; shut it up. Signed-off-by: Robin Murphy <robin.murphy@arm.com> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'drivers/iommu')
-rw-r--r--drivers/iommu/of_iommu.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/iommu/of_iommu.c b/drivers/iommu/of_iommu.c
index 43429ab62228..60ba238090d9 100644
--- a/drivers/iommu/of_iommu.c
+++ b/drivers/iommu/of_iommu.c
@@ -141,10 +141,12 @@ struct iommu_ops *of_iommu_configure(struct device *dev,
141 struct iommu_ops *ops = NULL; 141 struct iommu_ops *ops = NULL;
142 int idx = 0; 142 int idx = 0;
143 143
144 if (dev_is_pci(dev)) { 144 /*
145 dev_err(dev, "IOMMU is currently not supported for PCI\n"); 145 * We can't do much for PCI devices without knowing how
146 * device IDs are wired up from the PCI bus to the IOMMU.
147 */
148 if (dev_is_pci(dev))
146 return NULL; 149 return NULL;
147 }
148 150
149 /* 151 /*
150 * We don't currently walk up the tree looking for a parent IOMMU. 152 * We don't currently walk up the tree looking for a parent IOMMU.