All of lore.kernel.org
 help / color / mirror / Atom feed
From: John Rigby <john.rigby@linaro.org>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2] drivers/net/fec_mxc.c: write mac address in init
Date: Wed, 13 Oct 2010 14:31:08 -0600	[thread overview]
Message-ID: <1287001868-22244-1-git-send-email-john.rigby@linaro.org> (raw)
In-Reply-To: <1283976684-30754-1-git-send-email-john.rigby@linaro.org>

Call fec_set_hwaddr in init routine to setup MAC address so when ethaddr is set
late via setenv the change will propagate to the hw.

Signed-off-by: John Rigby <john.rigby@linaro.org>
CC: Ben Warren <biggerbadderben@gmail.com>
---
v2 - add blank line as requested
     better commit message
     added CC
 drivers/net/fec_mxc.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 2d4ffed..3f09c2b 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -414,6 +414,9 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
 	uint32_t base;
 	struct fec_priv *fec = (struct fec_priv *)dev->priv;
 
+	/* Initialize MAC address */
+	fec_set_hwaddr(dev);
+
 	/*
 	 * reserve memory for both buffer descriptor chains at once
 	 * Datasheet forces the startaddress of each chain is 16 byte
-- 
1.7.1

  parent reply	other threads:[~2010-10-13 20:31 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-08 20:11 [U-Boot] [PATCH] drivers/net/fec_mxc.c: write mac address in init John Rigby
2010-10-12 15:14 ` John Rigby
2010-10-12 19:52 ` Wolfgang Denk
2010-10-13 20:31 ` John Rigby [this message]
2010-10-19 21:27   ` [U-Boot] [PATCH v2] " Wolfgang Denk
2010-10-20  5:21     ` [U-Boot] [PATCH v2] drivers/net/fec_mxc.c: write mac address ininit Liu Hui-R64343
2010-10-21 21:03       ` John Rigby
2010-10-22  3:35         ` Jason Liu
2010-10-22  4:37           ` Wolfgang Denk
2010-10-22  5:10             ` Jason Liu
2010-10-22 15:00             ` Steve Sakoman
2010-10-22 15:11               ` Wolfgang Denk
2010-10-22 15:32               ` Mike Frysinger
2010-10-22 16:14                 ` Steve Sakoman
2010-10-22 16:37                   ` Shawn Guo

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=1287001868-22244-1-git-send-email-john.rigby@linaro.org \
    --to=john.rigby@linaro.org \
    --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.