drm/tegra: Silence expected errors on IOMMU attach
Subdevices may not be hooked up to an IOMMU via device tree. Detect such situations and avoid confusing users by not emitting an error message. Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Thierry Reding <treding@nvidia.com>
This commit is contained in:
@@ -920,10 +920,8 @@ int host1x_client_iommu_attach(struct host1x_client *client)
|
||||
|
||||
if (tegra->domain) {
|
||||
group = iommu_group_get(client->dev);
|
||||
if (!group) {
|
||||
dev_err(client->dev, "failed to get IOMMU group\n");
|
||||
if (!group)
|
||||
return -ENODEV;
|
||||
}
|
||||
|
||||
if (domain != tegra->domain) {
|
||||
err = iommu_attach_group(tegra->domain, group);
|
||||
|
Reference in New Issue
Block a user