U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] sunxi: Explicitly call fdt_fixup_ethernet() in our ft_board_setup()
Date: Fri, 28 Apr 2017 08:36:17 -0400	[thread overview]
Message-ID: <20170428123617.GA12511@bill-the-cat> (raw)
In-Reply-To: <1493379432.4151.86.camel@infinera.com>

On Fri, Apr 28, 2017 at 11:37:13AM +0000, Joakim Tjernlund wrote:
> On Fri, 2017-04-28 at 11:05 +0200, Maxime Ripard wrote:
> > On Fri, Apr 28, 2017 at 03:33:53PM +0800, Chen-Yu Tsai wrote:
> > > The sunxi platform relies on the core boot sequence to load and process
> > > device tree blobs, including writing back any MAC addresses we generate
> > > by an implicit call to fdt_fixup_ethernet() within the image loading
> > > mechanism. This call was removed in commit 3f66149d9fb4 ("Remove extra
> > > fdt_fixup_ethernet() call"), resuling in Linux using random MAC
> > > addresses.
> > > 
> > > This patch adds an explicit call to fdt_fixup_ethernet() in our
> > > ft_board_setup() function.
> > > 
> > > Fixes: 3f66149d9fb4 ("Remove extra fdt_fixup_ethernet() call")
> > 
> > I would just revert that commit. The function mentionned in the commit
> > log is platform specific, it just doesn't make any sense to remove
> > some generic code just because it would work on your platform.
> 
> The Generic code was both added later and wrong so no need to restore that.
> 
> One could remove the platform specific code and add back a generic one but then
> make sure it is called BEFORE any board setup.

OK, let me see if I can come up with something then, test patch shortly.

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170428/a0e58785/attachment.sig>

      reply	other threads:[~2017-04-28 12:36 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-28  7:33 [U-Boot] [PATCH] sunxi: Explicitly call fdt_fixup_ethernet() in our ft_board_setup() Chen-Yu Tsai
2017-04-28  9:05 ` Maxime Ripard
2017-04-28 11:24   ` Tom Rini
2017-04-28 11:37   ` Joakim Tjernlund
2017-04-28 12:36     ` Tom Rini [this message]

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=20170428123617.GA12511@bill-the-cat \
    --to=trini@konsulko.com \
    --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