Skip to contentSkip to conversation

net: fec_mxc: add write_hwaddr support

PATCH New Heiko Schocher 2 participants 2 messages Apr 27, 2010 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net: fec_mxc: add write_hwaddr support

tested on the magnesium board.

---
Patch from Ben must be applied before, see this patch here:

http://lists.denx.de/pipermail/u-boot/2010-April/070691.html

 drivers/net/fec_mxc.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/fec_mxc.c +1 -1
index 8c4ade5..2ea4fee 100644
@@ -505,7 +505,6 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
 		miiphy_restart_aneg(dev);
 
 	fec_open(dev);
-	fec_set_hwaddr(dev);
 	return 0;
 }
 
@@ -713,6 +712,7 @@ static int fec_probe(bd_t *bd)
 	edev->send = fec_send;
 	edev->recv = fec_recv;
 	edev->halt = fec_halt;
+	edev->write_hwaddr = fec_set_hwaddr;
 
 	fec->eth = (struct ethernet_regs *)IMX_FEC_BASE;
 	fec->bd = bd;
Signature · 5 lines
1.6.2.5

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Applied
#1 lore raw

PATCH 1/1 net: fec_mxc: add write_hwaddr support

Heiko,

Quoted 25 lines · Heiko Schocher

tested on the magnesium board.

---
Patch from Ben must be applied before, see this patch here:

http://lists.denx.de/pipermail/u-boot/2010-April/070691.html

  drivers/net/fec_mxc.c |    2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/fec_mxc.c +0 -1
index 8c4ade5..2ea4fee 100644
@@ -505,7 +505,6 @@ static int fec_init(struct eth_device *dev, bd_t* bd)
  		miiphy_restart_aneg(dev);
 
  	fec_open(dev);
-	fec_set_hwaddr(dev);
  	return 0;
  }
 

drivers/net/fec_mxc.c static int fec_probe(bd_t *bd) · line 718

Quoted 7 lines
drivers/net/fec_mxc.c +1 -0
@@ -713,6 +712,7 @@ static int fec_probe(bd_t *bd)
  	edev->send = fec_send;
  	edev->recv = fec_recv;
  	edev->halt = fec_halt;
+	edev->write_hwaddr = fec_set_hwaddr;
 
  	fec->eth = (struct ethernet_regs *)IMX_FEC_BASE;
  	fec->bd = bd;

Applied to net repo.

thanks,
Ben