iommu/rockchip: return -ENODEV when a disabled iommu node is referenced by master

When a disabled iommu node is referenced by a master which cause the previous iommu nodes
removed from the iommu group, finally cause kernel crash, return -ENODEV instead -EPROBE_DEFER
if iommu node disabled can fix this issue

Change-Id: I3adf3f4119ff6fff0a2068301338813f5aca8969
Signed-off-by: Simon Xue <xxm@rock-chips.com>
This commit is contained in:
Simon Xue
2018-02-08 16:10:56 +08:00
committed by Tao Huang
parent 5be2cb19cf
commit ed2deb3957

View File

@@ -1105,7 +1105,7 @@ static int rk_iommu_group_set_iommudata(struct iommu_group *group,
of_node_put(args.np);
if (!pd) {
dev_err(dev, "iommu %s not found\n", args.np->full_name);
return -EPROBE_DEFER;
return -ENODEV;
}
/* TODO(djkurtz): handle multiple slave iommus for a single master */