From: Wolfgang Denk Date: Mon, 26 Apr 2010 13:52:16 +0200 Subject: [U-Boot] [PATCH v2] Program net device MAC addresses after initializing In-Reply-To: <1272261030-9419-1-git-send-email-biggerbadderben@gmail.com> References: <1272261030-9419-1-git-send-email-biggerbadderben@gmail.com> Message-ID: <20100426115216.C8414C1584A@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 Ben Warren, In message <1272261030-9419-1-git-send-email-biggerbadderben@gmail.com> you wrote: > Add a new function to the eth_device struct for programming a network > controller's hardware address. > > After all network devices have been initialized and the proper MAC address for > each has been determined, make a device driver call to program the address > into the device. Only device instances with valid unicast addresses will be > programmed. Thanks. > +If Ethernet drivers implement the 'write_hwaddr' function, valid MAC addresses > +will be programmed into hardware as part of the initialization process. This > +may be skipped by setting the appropriate 'ethmacskip' environment variable. > +The naming convention is as follows: > +"eth0macskip" (=>eth0), "eth1macskip" (=>eth1) etc. Would it not be more consistent to use "ethmacskip" instead of "eth0macskip" similar to using "ethaddr" (instead of "eth0addr") ? The majority of boards still has only a single Ethernet interface anyway. 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 F u cn rd ths u cnt spl wrth a dm!