public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output
@ 2016-06-03 19:05 Andreas Dannenberg
  2016-06-05  3:33 ` Lokesh Vutla
                   ` (3 more replies)
  0 siblings, 4 replies; 5+ messages in thread
From: Andreas Dannenberg @ 2016-06-03 19:05 UTC (permalink / raw)
  To: u-boot

When no DTB can be matched successfully to the board that's being used
a list of available FIT-embedded DTBs will be output to the console for
diagnostic purposes. But rather than the contents of the "description"
FDT property a non-existent property was accessed and as a result "NULL"
was output instead of the actual name(s) of the DTB(s). Fix this issue
by using the correct property which is also the exact same property
that's used earlier during the actual board matching process.

Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
---
 common/spl/spl_fit.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
index c9eb020..9874708 100644
--- a/common/spl/spl_fit.c
+++ b/common/spl/spl_fit.c
@@ -77,7 +77,7 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp)
 	for (node = fdt_first_subnode(fdt, conf);
 	     node >= 0;
 	     node = fdt_next_subnode(fdt, node)) {
-		name = fdt_getprop(fdt, node, "name", &len);
+		name = fdt_getprop(fdt, node, "description", &len);
 		printf("   %s\n", name);
 	}
 #endif
-- 
2.7.2

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

* [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output
  2016-06-03 19:05 [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output Andreas Dannenberg
@ 2016-06-05  3:33 ` Lokesh Vutla
  2016-06-06 11:16 ` Tom Rini
                   ` (2 subsequent siblings)
  3 siblings, 0 replies; 5+ messages in thread
From: Lokesh Vutla @ 2016-06-05  3:33 UTC (permalink / raw)
  To: u-boot



On 6/4/2016 12:35 AM, Andreas Dannenberg wrote:
> When no DTB can be matched successfully to the board that's being used
> a list of available FIT-embedded DTBs will be output to the console for
> diagnostic purposes. But rather than the contents of the "description"
> FDT property a non-existent property was accessed and as a result "NULL"
> was output instead of the actual name(s) of the DTB(s). Fix this issue
> by using the correct property which is also the exact same property
> that's used earlier during the actual board matching process.

Reviewed-by: Lokesh Vutla <lokeshvutla@ti.com>

Thanks and regards,
Lokesh

>
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
> ---
>   common/spl/spl_fit.c | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/common/spl/spl_fit.c b/common/spl/spl_fit.c
> index c9eb020..9874708 100644
> --- a/common/spl/spl_fit.c
> +++ b/common/spl/spl_fit.c
> @@ -77,7 +77,7 @@ static int spl_fit_select_fdt(const void *fdt, int images, int *fdt_offsetp)
>   	for (node = fdt_first_subnode(fdt, conf);
>   	     node >= 0;
>   	     node = fdt_next_subnode(fdt, node)) {
> -		name = fdt_getprop(fdt, node, "name", &len);
> +		name = fdt_getprop(fdt, node, "description", &len);
>   		printf("   %s\n", name);
>   	}
>   #endif
>

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

* [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output
  2016-06-03 19:05 [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output Andreas Dannenberg
  2016-06-05  3:33 ` Lokesh Vutla
@ 2016-06-06 11:16 ` Tom Rini
  2016-06-06 11:16 ` Tom Rini
  2016-06-10  0:35 ` Simon Glass
  3 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2016-06-06 11:16 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 03, 2016 at 02:05:04PM -0500, Andreas Dannenberg wrote:

> When no DTB can be matched successfully to the board that's being used
> a list of available FIT-embedded DTBs will be output to the console for
> diagnostic purposes. But rather than the contents of the "description"
> FDT property a non-existent property was accessed and as a result "NULL"
> was output instead of the actual name(s) of the DTB(s). Fix this issue
> by using the correct property which is also the exact same property
> that's used earlier during the actual board matching process.
> 
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>

Reviewed-by: Tom Rini <trini@konsulko.com>

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160606/71a65351/attachment.sig>

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

* [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output
  2016-06-03 19:05 [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output Andreas Dannenberg
  2016-06-05  3:33 ` Lokesh Vutla
  2016-06-06 11:16 ` Tom Rini
@ 2016-06-06 11:16 ` Tom Rini
  2016-06-10  0:35 ` Simon Glass
  3 siblings, 0 replies; 5+ messages in thread
From: Tom Rini @ 2016-06-06 11:16 UTC (permalink / raw)
  To: u-boot

On Fri, Jun 03, 2016 at 02:05:04PM -0500, Andreas Dannenberg wrote:

> When no DTB can be matched successfully to the board that's being used
> a list of available FIT-embedded DTBs will be output to the console for
> diagnostic purposes. But rather than the contents of the "description"
> FDT property a non-existent property was accessed and as a result "NULL"
> was output instead of the actual name(s) of the DTB(s). Fix this issue
> by using the correct property which is also the exact same property
> that's used earlier during the actual board matching process.
> 
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20160606/13144a32/attachment.sig>

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

* [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output
  2016-06-03 19:05 [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output Andreas Dannenberg
                   ` (2 preceding siblings ...)
  2016-06-06 11:16 ` Tom Rini
@ 2016-06-10  0:35 ` Simon Glass
  3 siblings, 0 replies; 5+ messages in thread
From: Simon Glass @ 2016-06-10  0:35 UTC (permalink / raw)
  To: u-boot

On 3 June 2016 at 13:05, Andreas Dannenberg <dannenberg@ti.com> wrote:
> When no DTB can be matched successfully to the board that's being used
> a list of available FIT-embedded DTBs will be output to the console for
> diagnostic purposes. But rather than the contents of the "description"
> FDT property a non-existent property was accessed and as a result "NULL"
> was output instead of the actual name(s) of the DTB(s). Fix this issue
> by using the correct property which is also the exact same property
> that's used earlier during the actual board matching process.
>
> Signed-off-by: Andreas Dannenberg <dannenberg@ti.com>
> ---
>  common/spl/spl_fit.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Acked-by: Simon Glass <sjg@chromium.org>

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

end of thread, other threads:[~2016-06-10  0:35 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-03 19:05 [U-Boot] [PATCH] spl: fit: Fix non-matching DT names console output Andreas Dannenberg
2016-06-05  3:33 ` Lokesh Vutla
2016-06-06 11:16 ` Tom Rini
2016-06-06 11:16 ` Tom Rini
2016-06-10  0:35 ` Simon Glass

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox