From: Wolfgang Denk Date: Wed, 12 Aug 2009 23:35:13 +0200 Subject: [U-Boot] [PATCH 1/3] net/eth_device: keep index inside each device In-Reply-To: <20090812210339.GE21725@game.jcrosoft.org> References: <1250023747-20224-1-git-send-email-plagnioj@jcrosoft.com> <20090812185054.63898833DBD2@gemini.denx.de> <20090812210339.GE21725@game.jcrosoft.org> Message-ID: <20090812213513.AA2C7833DBD2@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Jean-Christophe PLAGNIOL-VILLARD, In message <20090812210339.GE21725@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.