All of lore.kernel.org
 help / color / mirror / Atom feed
* [U-Boot] [PATCH] drivers/net/fec_mxc.c: write mac address in init
@ 2010-09-08 20:11 John Rigby
  2010-10-12 15:14 ` John Rigby
                   ` (2 more replies)
  0 siblings, 3 replies; 15+ messages in thread
From: John Rigby @ 2010-09-08 20:11 UTC (permalink / raw)
  To: u-boot

call fec_set_hwaddr in init routine to setup MAC address
so when ethaddr is set late the change will propagate to the hw

Signed-off-by: John Rigby <john.rigby@linaro.org>
---
 drivers/net/fec_mxc.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/net/fec_mxc.c b/drivers/net/fec_mxc.c
index 2d4ffed..050c0e1 100644
--- a/drivers/net/fec_mxc.c
+++ b/drivers/net/fec_mxc.c
@@ -414,6 +414,8 @@ 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.0.4

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

end of thread, other threads:[~2010-10-22 16:37 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 ` [U-Boot] [PATCH v2] " John Rigby
2010-10-19 21:27   ` 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

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.