From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlev Zundel Date: Thu, 25 Mar 2010 14:16:55 +0100 Subject: [U-Boot] [PATCH] net, fec_mxc: use mac address stored in env before looking in eeprom In-Reply-To: <20100325094002.00014E731ED@gemini.denx.de> (Wolfgang Denk's message of "Thu, 25 Mar 2010 10:40:01 +0100") References: <4BA9FDEC.9010903@denx.de> <201003241635.58377.vapier@gentoo.org> <4BAB0357.60309@denx.de> <20100325094002.00014E731ED@gemini.denx.de> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Wolfgang, >> Ok, but this driver initialize in fec_probe() (which gets called >> through fecmxc_initialize() on uboot startup) always the fec mac >> address registers with eeprom mac address. So, if uboot not uses > > The question to me is why fec_probe() is called at all, even in cases > where U-Boot does not use any network related commands. This is IMO > wrong. Eventually somebody comes up with patches to fix this? As I said before, this is documented in doc/README.drivers.eth. If you want to change this, then maybe one should first fix the documentation to know what is actually wanted. I certainly have lost track of what is wanted and what is sensible. Cheers Detlev -- Programming X-Windows is like trying to find the square root of pi using roman numerals. -- The UNIX Haters Handbook -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-40 Fax: (+49)-8142-66989-80 Email: dzu at denx.de