aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/remoteproc
diff options
context:
space:
mode:
authorMark Grosen <mgrosen@ti.com>2011-12-13 01:41:47 -0500
committerOhad Ben-Cohen <ohad@wizery.com>2012-02-08 15:54:11 -0500
commit0798e1da7a1cc467f56bfa5149a0eede5ae38f72 (patch)
tree22fd7fdebb49fd5016687fc838d4f37233087ee6 /drivers/remoteproc
parent779b96d20ca97cfa19162b340bff0c27b405b4b2 (diff)
remoteproc: do not require an iommu
Not all remote processors employ an IOMMU, so do not error out on !iommu_present(). Note: we currently still use iommu_present() to tell whether we need to configure an IOMMU or not. That works for simple cases, but will easily fail with more complicated ones (e.g. where an IOMMU exists, but not all remote processors use it). When those use cases show up, we will solve them by introducing something like remoteproc hw capabilities. [ohad@wizery.com: write commit log] Signed-off-by: Mark Grosen <mgrosen@ti.com> Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
Diffstat (limited to 'drivers/remoteproc')
-rw-r--r--drivers/remoteproc/remoteproc_core.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/remoteproc/remoteproc_core.c b/drivers/remoteproc/remoteproc_core.c
index ad93d7d4ecb..0d9a9552c31 100644
--- a/drivers/remoteproc/remoteproc_core.c
+++ b/drivers/remoteproc/remoteproc_core.c
@@ -105,8 +105,8 @@ static int rproc_enable_iommu(struct rproc *rproc)
105 * that will be set by the remoteproc driver. 105 * that will be set by the remoteproc driver.
106 */ 106 */
107 if (!iommu_present(dev->bus)) { 107 if (!iommu_present(dev->bus)) {
108 dev_err(dev, "iommu not found\n"); 108 dev_dbg(dev, "iommu not found\n");
109 return -ENODEV; 109 return 0;
110 } 110 }
111 111
112 domain = iommu_domain_alloc(dev->bus); 112 domain = iommu_domain_alloc(dev->bus);