From: Wolfgang Denk Date: Tue, 06 Apr 2010 14:57:55 +0200 Subject: [U-Boot] [RFC] Program net device MAC addresses after initializing In-Reply-To: <1270450929-17004-1-git-send-email-biggerbadderben@gmail.com> References: <1270450929-17004-1-git-send-email-biggerbadderben@gmail.com> Message-ID: <20100406125755.681E6104D38D@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 <1270450929-17004-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. > > This is a significant departure from existing U-boot behavior, but costs very > little in startup time and addresses a very common complaint among developers. The thing is that this _is_ a violation of the design rules, and we should not make assumptions that such an initialization is harmless for all systems.