Skip to content
Commit 42404d8f authored by Mauri Sandberg's avatar Mauri Sandberg Committed by Jakub Kicinski
Browse files

net: mv643xx_eth: process retval from of_get_mac_address

Obtaining a MAC address may be deferred in cases when the MAC is stored
in an NVMEM block, for example, and it may not be ready upon the first
retrieval attempt and return EPROBE_DEFER.

It is also possible that a port that does not rely on NVMEM has been
already created when getting the defer request. Thus, also the resources
allocated previously must be freed when doing a roll-back.

Fixes: 76723bca

 ("net: mv643xx_eth: add DT parsing support")
Signed-off-by: default avatarMauri Sandberg <maukka@ext.kapsi.fi>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Link: https://lore.kernel.org/r/20220223142337.41757-1-maukka@ext.kapsi.fi


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent cd33bdcb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment