[U-Boot] [PATCH 1/3] net/eth_device: keep index inside each device

Wolfgang Denk wd at denx.de
Wed Aug 12 23:35:13 CEST 2009


Dear Jean-Christophe PLAGNIOL-VILLARD,

In message <20090812210339.GE21725 at game.jcrosoft.org> you wrote:
>
> > What exactly is the problem you are addressing with this patch?
> > 
> > Please provide a commit message that explains what is going on, and
> > what is being changed or fixed.
> simple it impossible to known what will be your device index in the driver
> specially when you have 2 or more drivers instance once or more

Sorry, but we don't have driver instances in U-Boot.  Even if you have
several Ethernet interfaces of the same type, there will be only a
single device driver instance. 

> so you can not update the mac addres in the env if you want to do it
> as we do on smc91111 as we can not known eth%daddr you are
> which allow us the avoid to read the eeprom every time we want to use the eth

At any time, there is (at most) a single active interface.

Best regards,

Wolfgang Denk

-- 
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Time is an illusion perpetrated by the manufacturers of space.


More information about the U-Boot mailing list