From: Wolfgang Denk Date: Fri, 26 Sep 2008 07:46:19 +0200 Subject: [U-Boot] [PATCH] [83xx] Adds two more ethernet interface to 83xx In-Reply-To: <48DC5A97.20305@gmail.com> References: <48DB89C4.3060204@ruggedcom.com> <48DC5A97.20305@gmail.com> Message-ID: <20080926054619.2D3F1248CD@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 Jerry Van Baren, In message <48DC5A97.20305@gmail.com> you wrote: > > Here is where a modification Kumar's loop (I would loop over > /aliases/ethernet[N] instead of the env variables) would cut out 5 > copies of the same code and would scale infinitely. Hmmm, we have > MAXCONTROLLERS (CONFIG_NUM_ETH?) to tell us how many etherspiggots we > have, can we loop on that? > > I would also *strongly* prefer eliminating bd->bi_enet[N]addr variables, > are they needed at all in a fdt-enabled system? Are there any other > places that bd->bi_enet[N]addr is used? If the only use is here, to > print out the MAC addresses, we can do Kumar's loop and print the env > variables directly instead of converting the env variable to > bd->enet[N]addr and then back into ASCII. Bleah. There are fdt-less systems around, and will be, at least for a looong time. 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 How can you tell when sour cream goes bad?