All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] rpi: set ethaddr as well
@ 2016-02-03 15:08 Lubomir Rintel
  2016-02-06  4:06 ` [U-Boot] " Stephen Warren
  2016-02-08 20:49 ` Tom Rini
  0 siblings, 2 replies; 3+ messages in thread
From: Lubomir Rintel @ 2016-02-03 15:08 UTC (permalink / raw)
  To: u-boot

Let's set "ethaddr" when we get the ethernet address too, so that
fdt_fixup_ethernet() sets the address in the device tree and the Linux
driver can pick it up.

Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
---
The related Linux kernel change submitted here:
http://lists.infradead.org/pipermail/linux-rpi-kernel/2016-February/003207.html

 board/raspberrypi/rpi/rpi.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/board/raspberrypi/rpi/rpi.c b/board/raspberrypi/rpi/rpi.c
index b344362..d7ad79d 100644
--- a/board/raspberrypi/rpi/rpi.c
+++ b/board/raspberrypi/rpi/rpi.c
@@ -254,6 +254,9 @@ static void set_usbethaddr(void)
 
 	eth_setenv_enetaddr("usbethaddr", msg->get_mac_address.body.resp.mac);
 
+	if (!getenv("ethaddr"))
+		setenv("ethaddr", getenv("usbethaddr"));
+
 	return;
 }
 
-- 
2.5.0

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

end of thread, other threads:[~2016-02-08 20:49 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-02-03 15:08 [U-Boot] [PATCH] rpi: set ethaddr as well Lubomir Rintel
2016-02-06  4:06 ` [U-Boot] " Stephen Warren
2016-02-08 20:49 ` Tom Rini

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.