Re: [PATCHv2 net-next] net: mvneta: support EPROBE_DEFER when reading MAC address
From: Simon Horman
Date: Tue Mar 10 2026 - 12:30:57 EST
On Fri, Mar 06, 2026 at 07:17:09PM -0800, Rosen Penev wrote:
> If nvmem loads after the ethernet driver, mac address assignments will
> not take effect. of_get_ethdev_address returns EPROBE_DEFER in such a
> case so we need to handle that to avoid eth_hw_addr_random.
>
> Add extra goto section to just free stats as they are allocated right
> above.
>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>
> ---
> v2: free stats on probe defer.
Reviewed-by: Simon Horman <horms@xxxxxxxxxx>