From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from 30.mail-out.ovh.net ([213.186.62.213]) by canuck.infradead.org with smtp (Exim 4.72 #1 (Red Hat Linux)) id 1Q977o-0002bT-MM for barebox@lists.infradead.org; Mon, 11 Apr 2011 02:45:13 +0000 Date: Mon, 11 Apr 2011 04:37:02 +0200 From: Jean-Christophe PLAGNIOL-VILLARD Message-ID: <20110411023702.GA18925@game.jcrosoft.org> References: <1302358087-9756-1-git-send-email-franck.jullien@gmail.com> <1302358087-9756-2-git-send-email-franck.jullien@gmail.com> <20110410040649.GA8392@game.jcrosoft.org> <20110410105159.GA18343@game.jcrosoft.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: barebox-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: Re: [PATCH] [v2] Nios2: Add Altera TSE MAC driver To: Franck JULLIEN Cc: barebox On 20:21 Sun 10 Apr , Franck JULLIEN wrote: > 2011/4/10 Jean-Christophe PLAGNIOL-VILLARD > > > > index 0000000..2687377 > > > --- /dev/null > > > + > > > +static int tse_get_ethaddr(struct eth_device *edev, unsigned > char *m) > > > +{ > > > + /* There is no eeprom */ > > so return the content of the register no? > > > > Well, the register is reseted to 0 when the MAC starts so there is > no > > Ethernet address > > to get. > > > except this function is supposed to return the mac address of the device > at > any time so after a set of it it will not be true any more > > If I implement the function I get a "eth@eth0: got MAC address from > EEPROM: 00:00:00:00:00:00" at startup. > That why I returned -1 as what I could find int at91_ether.c...... > Or, I could find something to return -1 as long as the MAC address hasn't > been set. > I known this issue I re-write recently the at91_ether and the same on macb will post the patch soon It's fine the uperlayer will see that it's not a valid mac so this will generate a random one cf net/net.c IIRC Best Regads, J. _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox