All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] fdtdec: fdtdec_get_aliases_highest_id: skip aliases to disabled nodes
@ 2021-04-16 21:30 Tim Harvey
  2021-04-29 16:09 ` Simon Glass
  0 siblings, 1 reply; 9+ messages in thread
From: Tim Harvey @ 2021-04-16 21:30 UTC (permalink / raw)
  To: u-boot

When looking for an alias with the highest id skip aliases for nodes
that are disabled.

Signed-off-by: Tim Harvey <tharvey@gateworks.com>
---
 lib/fdtdec.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/fdtdec.c b/lib/fdtdec.c
index 864589193b..d47195525a 100644
--- a/lib/fdtdec.c
+++ b/lib/fdtdec.c
@@ -546,6 +546,8 @@ int fdtdec_get_alias_highest_id(const void *blob, const char *base)
 		if (*prop != '/' || prop[len - 1] ||
 		    strncmp(name, base, base_len))
 			continue;
+		if (!fdtdec_get_is_enabled(blob, fdt_path_offset(blob, prop)))
+			continue;
 
 		val = trailing_strtol(name);
 		if (val > max) {
-- 
2.17.1

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2021-07-04 19:24 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-16 21:30 [PATCH] fdtdec: fdtdec_get_aliases_highest_id: skip aliases to disabled nodes Tim Harvey
2021-04-29 16:09 ` Simon Glass
2021-04-29 16:48   ` Tim Harvey
2021-06-11 16:32     ` Tim Harvey
2021-06-11 17:09       ` Sean Anderson
2021-06-11 17:16         ` Tim Harvey
2021-06-11 17:23           ` Sean Anderson
2021-06-11 17:30             ` Tim Harvey
2021-07-04 19:24               ` Simon Glass

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.