public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] rpi: Add a call to fdt_fixup_ethernet()
@ 2017-04-26 19:44 Tom Rini
  2017-04-27  6:08 ` Gerd Hoffmann
  0 siblings, 1 reply; 2+ messages in thread
From: Tom Rini @ 2017-04-26 19:44 UTC (permalink / raw)
  To: u-boot

As we no longer have a call to fdt_fixup_ethernet in image_setup_libfdt
we need to make a call to fdt_fixup_ethernet ourself somewhere.  Do this
in ft_board_setup here as we already have other fixups being performed
on the board here.

Fixes: 3f66149d9fb4 ("Remove extra fdt_fixup_ethernet() call")
Reported-by: Gerd Hoffmann <kraxel@redhat.com>
Cc: Stephen Warren <swarren@wwwdotorg.org>
Signed-off-by: Tom Rini <trini@konsulko.com>
---
 board/raspberrypi/rpi/rpi.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index 2146534b3653..5b037563a5b3 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -530,5 +530,11 @@ int ft_board_setup(void *blob, bd_t *bd)
 	efi_add_memory_map(0, 1, EFI_RESERVED_MEMORY_TYPE, 0);
 #endif
 
+	/*
+	 * Fixup all ethernet nodes
+	 * Note: aliases in the dts are required for this
+	 */
+	fdt_fixup_ethernet(blob);
+
 	return 0;
 }
-- 
1.9.1

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

* [U-Boot] [PATCH] rpi: Add a call to fdt_fixup_ethernet()
  2017-04-26 19:44 [U-Boot] [PATCH] rpi: Add a call to fdt_fixup_ethernet() Tom Rini
@ 2017-04-27  6:08 ` Gerd Hoffmann
  0 siblings, 0 replies; 2+ messages in thread
From: Gerd Hoffmann @ 2017-04-27  6:08 UTC (permalink / raw)
  To: u-boot

On Mi, 2017-04-26 at 15:44 -0400, Tom Rini wrote:
> As we no longer have a call to fdt_fixup_ethernet in
> image_setup_libfdt
> we need to make a call to fdt_fixup_ethernet ourself somewhere.  Do
> this
> in ft_board_setup here as we already have other fixups being performed
> on the board here.

Works.

Tested-by: Gerd Hoffmann <kraxel@redhat.com>

thanks,
  Gerd

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

end of thread, other threads:[~2017-04-27  6:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-04-26 19:44 [U-Boot] [PATCH] rpi: Add a call to fdt_fixup_ethernet() Tom Rini
2017-04-27  6:08 ` Gerd Hoffmann

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