mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-09-30 16:40:44 +09:00
arm: mach-k3: Warn when node to disable is not found
Not finding a node that we try to disable does not always need to be fatal to boot but should at least print out a warning. Return error from fdt_disable_node as it did fail to disable the node, but only warn in the case of disabling the TRNG as this will not prevent boot. Signed-off-by: Andrew F. Davis <afd@ti.com> Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
This commit is contained in:
parent
60c8e50452
commit
28b90a4656
@ -174,8 +174,8 @@ int fdt_disable_node(void *blob, char *node_path)
|
|||||||
|
|
||||||
offs = fdt_path_offset(blob, node_path);
|
offs = fdt_path_offset(blob, node_path);
|
||||||
if (offs < 0) {
|
if (offs < 0) {
|
||||||
debug("Node %s not found.\n", node_path);
|
printf("Node %s not found.\n", node_path);
|
||||||
return 0;
|
return offs;
|
||||||
}
|
}
|
||||||
ret = fdt_setprop_string(blob, offs, "status", "disabled");
|
ret = fdt_setprop_string(blob, offs, "status", "disabled");
|
||||||
if (ret < 0) {
|
if (ret < 0) {
|
||||||
|
@ -105,10 +105,8 @@ int ft_board_setup(void *blob, bd_t *bd)
|
|||||||
#if defined(CONFIG_TI_SECURE_DEVICE)
|
#if defined(CONFIG_TI_SECURE_DEVICE)
|
||||||
/* Make HW RNG reserved for secure world use */
|
/* Make HW RNG reserved for secure world use */
|
||||||
ret = fdt_disable_node(blob, "/interconnect@100000/trng@4e10000");
|
ret = fdt_disable_node(blob, "/interconnect@100000/trng@4e10000");
|
||||||
if (ret) {
|
if (ret)
|
||||||
printf("%s: disabling TRGN failed %d\n", __func__, ret);
|
printf("%s: disabling TRGN failed %d\n", __func__, ret);
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user