summaryrefslogtreecommitdiff
path: root/arch/arm
diff options
context:
space:
mode:
authorPeng Fan <peng.fan@nxp.com>2020-05-07 11:00:38 +0800
committerPeng Fan <peng.fan@nxp.com>2020-05-09 09:45:20 +0800
commitf619c8509f91c5691376720fba7ce2a0109d7f5c (patch)
treea664fa05428ba755ee03e35d4e72408faa8a9468 /arch/arm
parent12b87b680469ee7e21411bd8c696502becc23d9e (diff)
MLK-23948-1 imx8: fdt: directly return when no entry for smmu
break will let the function return -ENOENT, and cause boot error. Return 0 to fix the issue. Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/mach-imx/imx8/fdt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/imx8/fdt.c b/arch/arm/mach-imx/imx8/fdt.c
index 8a29cb8374..0292788172 100644
--- a/arch/arm/mach-imx/imx8/fdt.c
+++ b/arch/arm/mach-imx/imx8/fdt.c
@@ -498,16 +498,16 @@ static int config_smmu_fdt_device_sid(void *blob, int device_offset, int sid)
"#power-domain-cells",
0, i++, &args);
if (ret == -ENOENT) {
- break;
+ return 0;
} else if (ret) {
printf("Parse power-domains of node %s wrong: %d\n",
fdt_get_name(blob, device_offset, NULL), ret);
continue;
}
+ rsrc = args.args[0];
debug("configure node %s sid 0x%x rsrc=%d\n",
name, sid, rsrc);
- rsrc = args.args[0];
ret = config_smmu_resource_sid(rsrc, sid);
if (ret)