提交 0798e1da 编写于 作者: M Mark Grosen 提交者: Ohad Ben-Cohen

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: NMark Grosen <mgrosen@ti.com>
Signed-off-by: NOhad Ben-Cohen <ohad@wizery.com>
上级 779b96d2
......@@ -105,8 +105,8 @@ static int rproc_enable_iommu(struct rproc *rproc)
* that will be set by the remoteproc driver.
*/
if (!iommu_present(dev->bus)) {
dev_err(dev, "iommu not found\n");
return -ENODEV;
dev_dbg(dev, "iommu not found\n");
return 0;
}
domain = iommu_domain_alloc(dev->bus);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册