[U-Boot] [PATCH 1/4]: arm: Kirkwood: Set MAC address during registration for kirkwood egiga

Prafulla Wadaskar prafulla at marvell.com
Thu Jul 9 10:49:14 CEST 2009


 

> -----Original Message-----
> From: Simon Kagstrom [mailto:simon.kagstrom at netinsight.net] 
> Sent: Wednesday, July 08, 2009 4:32 PM
> Cc: U-Boot ML; Prafulla Wadaskar
> Subject: [PATCH 1/4]: arm: Kirkwood: Set MAC address during 
> registration for kirkwood egiga
> 
> 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 at 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)
> --
Ack. Good catch, I had removed it during code size reduction :-(

Regards..
Prafulla . .

> 1.6.0.4
> 
> 


More information about the U-Boot mailing list