Re: [RFC PATCH net-next] net: stmmac: Preserve bootloader MAC address across unconditional reset

From: Lad, Prabhakar

Date: Tue Jan 27 2026 - 11:02:56 EST


Hi Geert,

On Tue, Jan 27, 2026 at 1:57 PM Geert Uytterhoeven <geert@xxxxxxxxxxxxxx> wrote:
>
> Hi Prabhakar,
>
> On Tue, 27 Jan 2026 at 14:39, Lad, Prabhakar <prabhakar.csengg@xxxxxxxxx> wrote:
> > On Mon, Jan 26, 2026 at 6:11 PM Russell King (Oracle)
> > <linux@xxxxxxxxxxxxxxx> wrote:
> > > On Mon, Jan 26, 2026 at 05:25:03PM +0000, Prabhakar wrote:
> > > where "local-mac-address" states the MAC address to be used for eth0,
> > > as specified by the boot loader.
> > >
> > Thanks for the pointer, I will use the above-mentioned method with
> > which we won't be needing this patch on the RZ/T2H platform.
>
> This should already work out-of-the-box, as
> arch/arm64/boot/dts/renesas/rzt2h-n2h-evk-common.dtsi already has:
>
> aliases {
> ethernet3 = &gmac1;
> ethernet2 = &gmac2;
>
> So just make sure to set the "eth2addr" and "eth3addr" environment
> variables in U-Boot.
>
Agreed, it was just that the aliases in Linux and u-boot didn't match
up (Ive notified the BSP team to update it accordingly).

Cheers,
Prabhakar