[U-Boot] [PATCH v2] fdt: fix setting MAC addresses for multiple interfaces

Joe Hershberger joe.hershberger at gmail.com
Tue May 3 21:52:48 CEST 2016


Hi Lev,

On Mon, May 2, 2016 at 11:01 AM, Lev Iserovich
<Lev.Iserovich at deshawresearch.com> wrote:
> Hi,
>
> Updated with C-style comments:
>
> For multiple ethernet interfaces the FDT offset of '/aliases' will change as
> we
> are adding MAC addresses to the FDT.
> Therefore only the first interface ('ethernet0') will get properly updated
> in
> the FDT, with the rest getting FDT errors when we try to set their MAC
> address.
>
> Signed-off-by: Lev Iserovich<iserovil at deshawresearch.com>
> ---
>
> Changes in v2:
>    - Rebase on u-boot-net patches:
>      http://patchwork.ozlabs.org/patch/539373/
>      http://patchwork.ozlabs.org/patch/539374/
>    - Recompute offset based on property index
>    - C-style comments

I had already applied your previous patch with a few minor
adjustments. Please look at what's in my tree and send a patch on top
of that if you care to make further improvements.

Also, you might want to consider using tools/patman/patman when
working on patches and sending to the list.

Thanks,
-Joe

http://git.denx.de/?p=u-boot/u-boot-net.git;a=commitdiff;h=f383f32d5568a3a1a4d31efa97f5cf991961a5e8


More information about the U-Boot mailing list