[PATCH net-next 0/2] net: ethernet: ti: am65-cpsw: Fix MAC address fetching

From: Michael Walle
Date: Fri Apr 11 2025 - 08:09:43 EST


MAC addresses can be fetched from a NVMEM device. of_get_mac_address()
will return EPROBE_DEFER if that device is not available yet. That
isn't handled correctly by the driver and it will always fall back
to either a random MAC address or it's own "fetch by fuse" method.

Also, if the ethernet (sub)node has a link to the nvmem device,
it will fail to create a device link as the fwnode parameter isn't
populated. That's fixed in the first patch.

Michael Walle (2):
net: ethernet: ti: am65-cpsw: set fwnode for ports
net: ethernet: ti: am65-cpsw: handle -EPROBE_DEFER

drivers/net/ethernet/ti/am65-cpsw-nuss.c | 27 +++++++++++++-----------
1 file changed, 15 insertions(+), 12 deletions(-)

--
2.39.5