OSDN Git Service

net: mvpp2: Defer probe if MAC address source is not yet ready
authorMiquel Raynal <miquel.raynal@bootlin.com>
Tue, 7 Mar 2023 19:29:27 +0000 (20:29 +0100)
committerJakub Kicinski <kuba@kernel.org>
Sat, 11 Mar 2023 00:12:10 +0000 (16:12 -0800)
commitcc4342f60f1a6d0f4a30ae1887a75834d0109444
treec94b4d3fc848facc651cefaf54ef9d81ccdaebb0
parenta1331535aeb41b08fe0c2c78af51885edc93615b
net: mvpp2: Defer probe if MAC address source is not yet ready

NVMEM layouts are no longer registered early, and thus may not yet be
available when Ethernet drivers (or any other consumer) probe, leading
to possible probe deferrals errors. Forward the error code if this
happens. All other errors being discarded, the driver will eventually
use a random MAC address if no other source was considered valid (no
functional change on this regard).

Signed-off-by: Miquel Raynal <miquel.raynal@bootlin.com>
Reviewed-by: Marcin Wojtas <mw@semihalf.com>
Link: https://lore.kernel.org/r/20230307192927.512757-1-miquel.raynal@bootlin.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/marvell/mvpp2/mvpp2_main.c