From: Wolfgang Denk <wd@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] Adding support for DevKit8000
Date: Mon, 17 Aug 2009 22:42:27 +0200 [thread overview]
Message-ID: <20090817204227.D3CAB833DBD2@gemini.denx.de> (raw)
In-Reply-To: <4A897571.9090404@googlemail.com>
Dear Dirk Behme,
In message <4A897571.9090404@googlemail.com> you wrote:
>
> Wolfgang commented already most of the topics.
:-)
> So, only one comment left for me:
But a well spottet one, thanks!
> > + /* Use OMAP DIE_ID as MAC address */
> > + if (!eth_getenv_enetaddr("ethaddr", enetaddr)) {
> > + enetaddr[0] = 0x02; /* locally administered */
> > + enetaddr[1] = readl(&id_base->die_id_1) & 0xff;
> > + *(u32*)&enetaddr[2] = readl(&id_base->die_id_0);
Who guarantess that &enetaddr[2] will be 32 bit aligned?
And hat does this machine do on unaligned accesses?
Frederik: Please fix this.
> > + eth_setenv_enetaddr("ethaddr", enetaddr);
> > + }
>
> With the OMAP DIE_ID thread we know what you are doing here. But do we
> want to have this really in mainline? It looks to me like a workaround
> for broken hardware (that is, having no proper MAC address
> configured)? Or do I miss anything?
Indeed. It's fishy at best.
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
When the tide of life turns against you
And the current upsets your boat
Don't waste tears on what might have been
Just lie on your back and float.
next prev parent reply other threads:[~2009-08-17 20:42 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-08-17 9:18 [U-Boot] [PATCH] Adding support for DevKit8000 Frederik Kriewitz
2009-08-17 9:50 ` Wolfgang Denk
2009-08-17 13:45 ` Frederik Kriewitz
2009-08-17 15:16 ` Dirk Behme
2009-08-17 18:23 ` Dirk Behme
2009-08-17 15:21 ` Dirk Behme
2009-08-17 17:03 ` Frederik Kriewitz
2009-08-17 17:38 ` Dirk Behme
2009-08-17 20:42 ` Wolfgang Denk [this message]
-- strict thread matches above, loose matches on Subject: below --
2009-08-17 23:20 Frederik Kriewitz
2009-08-19 22:19 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-20 3:59 ` Frederik Kriewitz
2009-08-20 5:18 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-20 8:55 ` Frederik Kriewitz
2009-08-20 13:22 ` Jean-Christophe PLAGNIOL-VILLARD
2009-08-21 22:15 ` Wolfgang Denk
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20090817204227.D3CAB833DBD2@gemini.denx.de \
--to=wd@denx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox