[U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-06 Thread Michael Walle
Don't assume that the MAC address of egiga0 rsp. egiga1 is ethaddr rsp. eth1addr. If there is only a egiga1 device, u-boot will enumerate it as device 0 and therefore the MAC address is set with the environmen varibale ethaddr. Signed-off-by: Michael Walle --- drivers/net/mvgbe.c | 13 +++-

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-07 Thread Prafulla Wadaskar
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] > On Behalf Of Michael Walle > Sent: Friday, October 07, 2011 3:53 AM > To: u-boot@lists.denx.de > Subject: [U-Boot] [PATCH] mvgbe: fix network device indices > > D

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-07 Thread Michael Walle
Am Fr, 7.10.2011, 10:26 schrieb Prafulla Wadaskar: >> -Original Message- >> From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] >> On Behalf Of Michael Walle >> Sent: Friday, October 07, 2011 3:53 AM >> To: u-boot@lists.denx.de >>

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-07 Thread Mike Frysinger
On Thursday 06 October 2011 18:23:22 Michael Walle wrote: > --- a/net/eth.c > +++ b/net/eth.c > > +int eth_setenv_enetaddr_by_index(const char *base_name, int index, > + const uchar *enetaddr) > +{ > + char enetvar[32]; > + sprintf(enetvar, index ? "%s%daddr" :

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-16 Thread Michael Walle
Sent: Friday, October 07, 2011 3:53 AM > >> To: u-boot@lists.denx.de > >> Subject: [U-Boot] [PATCH] mvgbe: fix network device indices > >> > >> Don't assume that the MAC address of egiga0 rsp. egiga1 is ethaddr rsp. > >> eth1addr. If there is only

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-21 Thread Prafulla Wadaskar
> -Original Message- > From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] > On Behalf Of Michael Walle > Sent: Friday, October 07, 2011 3:53 AM > To: u-boot@lists.denx.de > Subject: [U-Boot] [PATCH] mvgbe: fix network device indices > > D

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-25 Thread Michael Walle
Am Freitag 21 Oktober 2011, 10:09:15 schrieben Sie: > > -Original Message- > > From: u-boot-boun...@lists.denx.de [mailto:u-boot-boun...@lists.denx.de] > > On Behalf Of Michael Walle > > Sent: Friday, October 07, 2011 3:53 AM > > To: u-boot@lists.denx.de >

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-27 Thread Prafulla Wadaskar
> -Original Message- > From: Michael Walle [mailto:mich...@walle.cc] > Sent: Wednesday, October 26, 2011 2:41 AM > To: Prafulla Wadaskar > Cc: u-boot@lists.denx.de; Mike Frysinger > Subject: Re: [U-Boot] [PATCH] mvgbe: fix network device indices > > Am Freitag 2

Re: [U-Boot] [PATCH] mvgbe: fix network device indices

2011-10-27 Thread Michael Walle
Am Do, 27.10.2011, 11:12 schrieb Prafulla Wadaskar: >> > If I understood it correctly, >> > In current implementation, if only egiga1 device is enabled >> on the board, >> > then it will assign MAC address associated with environment >> variable >> > "ethaddr". >> yes but the current mvgbe driver w