diff options
| author | Michael Walle <[email protected]> | 2025-04-14 08:43:36 +0000 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2025-04-17 00:51:33 +0000 |
| commit | 09737cb80b8686ffca4ed1805fee745d5c85604d (patch) | |
| tree | 466dbc7a0f864d354d5164019c2eada2ac48f39a /net/unix/af_unix.c | |
| parent | net: ethernet: ti: am65-cpsw: set fwnode for ports (diff) | |
| download | kernel-09737cb80b8686ffca4ed1805fee745d5c85604d.tar.gz kernel-09737cb80b8686ffca4ed1805fee745d5c85604d.zip | |
net: ethernet: ti: am65-cpsw: handle -EPROBE_DEFER
of_get_mac_address() might fetch the MAC address from NVMEM and that
driver might not have been loaded. In that case, -EPROBE_DEFER is
returned. Right now, this will trigger an immediate fallback to
am65_cpsw_am654_get_efuse_macid() possibly resulting in a random MAC
address although the MAC address is stored in the referenced NVMEM.
Fix it by handling the -EPROBE_DEFER return code correctly. This also
means that the creation of the MDIO device has to be moved to a later
stage as -EPROBE_DEFER must not be returned after child devices are
created.
Signed-off-by: Michael Walle <[email protected]>
Reviewed-by: Andrew Lunn <[email protected]>
Link: https://patch.msgid.link/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions
