From: Mike Frysinger Date: Thu, 3 Nov 2011 14:10:57 -0400 Subject: [U-Boot] [PATCH 2/2] mvgbe: fix network device indices In-Reply-To: <1319751096-24404-3-git-send-email-michael@walle.cc> References: <201110252310.30372.michael@walle.cc> <1319751096-24404-3-git-send-email-michael@walle.cc> Message-ID: <201111031410.58442.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Thursday 27 October 2011 17:31:36 Michael Walle wrote: > --- a/drivers/net/mvgbe.c > +++ b/drivers/net/mvgbe.c > > + /* Extract the MAC address from the environment */ > + while (!eth_getenv_enetaddr_by_index("eth", dev->index, > + dev->enetaddr)) { > /* Generate Private MAC addr if not set */ > dev->enetaddr[0] = 0x02; > dev->enetaddr[1] = 0x50; this is wrong. net drivers should not be touching the env at all. please fix your driver to not do that first. -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20111103/2bd724db/attachment.pgp