Re: [PATCH net-next] net: ag71xx: support probe defferal for getting MAC address

From: Andrew Lunn
Date: Sun Aug 25 2024 - 21:54:33 EST


On Sat, Aug 24, 2024 at 01:02:37PM -0700, Rosen Penev wrote:
> Currently, of_get_ethdev_address() return is checked for any return error
> code which means that trying to get the MAC from NVMEM cells that is backed
> by MTD will fail if it was not probed before ag71xx.
>
> So, lets check the return error code for EPROBE_DEFER and defer the ag71xx
> probe in that case until the underlying NVMEM device is live.
>
> Signed-off-by: Robert Marko <robimarko@xxxxxxxxx>
> Signed-off-by: Rosen Penev <rosenp@xxxxxxxxx>

Reviewed-by: Andrew Lunn <andrew@xxxxxxx>

Andrew