All of lore.kernel.org
 help / color / mirror / Atom feed
From: Simon Kagstrom <simon.kagstrom@netinsight.net>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 1/4]: arm: Kirkwood: Set MAC address during registration for kirkwood egiga
Date: Wed, 8 Jul 2009 13:02:22 +0200	[thread overview]
Message-ID: <20090708130222.7b3381ae@marrow.netinsight.se> (raw)
In-Reply-To: <20090708130134.4b100399@marrow.netinsight.se>

This patch sets the MAC address during registration in addition to
during device init. Since U-boot might not access the ethernet device,
Linux might end up with the MAC address unset.

Signed-off-by: Simon Kagstrom <simon.kagstrom@netinsight.net>
---
 drivers/net/kirkwood_egiga.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/kirkwood_egiga.c b/drivers/net/kirkwood_egiga.c
index 3c5db19..d760e1d 100644
--- a/drivers/net/kirkwood_egiga.c
+++ b/drivers/net/kirkwood_egiga.c
@@ -653,6 +653,8 @@ int kirkwood_egiga_initialize(bd_t * bis)
 		dev->send = (void *)kwgbe_send;
 		dev->recv = (void *)kwgbe_recv;
 
+		port_uc_addr_set(dkwgbe->regs, dev->enetaddr);
+
 		eth_register(dev);
 
 #if defined(CONFIG_MII) || defined(CONFIG_CMD_MII)
-- 
1.6.0.4

  reply	other threads:[~2009-07-08 11:02 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-08 11:01 [U-Boot] [PATCH 0/4]: arm: Kirkwood: Various egiga fixes Simon Kagstrom
2009-07-08 11:02 ` Simon Kagstrom [this message]
2009-07-09  8:49   ` [U-Boot] [PATCH 1/4]: arm: Kirkwood: Set MAC address during registration for kirkwood egiga Prafulla Wadaskar
2009-07-10  5:44   ` Ben Warren
2009-07-10  7:24     ` Simon Kagstrom
2009-07-10  8:15       ` Prafulla Wadaskar
2009-07-11  9:27       ` Wolfgang Denk
2009-07-13  8:13         ` Simon Kagstrom
2009-07-17 18:50           ` Wolfgang Denk
2009-07-11  9:25     ` Wolfgang Denk
2009-07-08 11:03 ` [U-Boot] [PATCH 2/4]: arm: Kirkwood: Fix compiler optimization bug for kwgbe_send Simon Kagstrom
2009-07-21  5:40   ` Ben Warren
2009-07-21  5:41   ` Ben Warren
2009-07-08 11:05 ` [U-Boot] [PATCH 3/4]: arm: Kirkwood: Check the error summary bit for error detection Simon Kagstrom
2009-07-21  5:42   ` Ben Warren
2009-07-08 11:05 ` [U-Boot] [PATCH 4/4]: arm: Kirkwood: See to it that sent data is 8-byte aligned Simon Kagstrom
2009-07-08 12:17   ` Prafulla Wadaskar
2009-07-08 12:44     ` Simon Kagstrom
2009-07-08 21:03       ` Jean-Christophe PLAGNIOL-VILLARD
2009-07-08 12:35   ` Stefan Roese
2009-07-08 13:04     ` Simon Kagstrom
2009-07-21  5:47   ` Ben Warren

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090708130222.7b3381ae@marrow.netinsight.se \
    --to=simon.kagstrom@netinsight.net \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.