projects
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
04cc6f0
)
arm64: zynqmp: Fix return code from do_zynqmp_pmufw()
author
Michal Simek
<michal.simek@amd.com>
Thu, 1 Jun 2023 11:25:04 +0000
(13:25 +0200)
committer
Michal Simek
<michal.simek@amd.com>
Mon, 12 Jun 2023 11:25:02 +0000
(13:25 +0200)
zynqmp_pmufw_node() can also return values like -ENODEV which means that
NODE has been already configured that's why don't propagate this error
code.
Signed-off-by: Michal Simek <michal.simek@amd.com>
Link:
https://lore.kernel.org/r/e52d24d8d3efb276778d387dc716e4e065e0626f.1685618701.git.michal.simek@amd.com
board/xilinx/zynqmp/cmds.c
patch
|
blob
|
history
diff --git
a/board/xilinx/zynqmp/cmds.c
b/board/xilinx/zynqmp/cmds.c
index 9d375b075501b1936f2ea9ae00885e2362733953..930592ffb5c18b7fa3e7894fd5c357ec9bfdace8 100644
(file)
--- a/
board/xilinx/zynqmp/cmds.c
+++ b/
board/xilinx/zynqmp/cmds.c
@@
-211,6
+211,7
@@
static int do_zynqmp_pmufw(struct cmd_tbl *cmdtp, int flag, int argc,
if (!strncmp(argv[2], "node", 4)) {
u32 id;
+ int ret;
if (!strncmp(argv[3], "close", 5))
return zynqmp_pmufw_config_close();
@@
-223,7
+224,11
@@
static int do_zynqmp_pmufw(struct cmd_tbl *cmdtp, int flag, int argc,
printf("Enable permission for node ID %d\n", id);
- return zynqmp_pmufw_node(id);
+ ret = zynqmp_pmufw_node(id);
+ if (ret == -ENODEV)
+ ret = 0;
+
+ return ret;
}
addr = hextoul(argv[2], NULL);