net: broadcom: bcm4908_enet: handle -EPROBE_DEFER when getting MAC
authorRafał Miłecki <rafal@milecki.pl>
Thu, 15 Sep 2022 13:30:13 +0000 (15:30 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 21:34:03 +0000 (14:34 -0700)
commite93a766da57fff3273bcb618edf5dfca1fb86b89
tree7011c8e5135ded7c60998986e6857a0c930deee3
parentcaddb4e0d63980315772e3c6f4e92624d0dd193f
net: broadcom: bcm4908_enet: handle -EPROBE_DEFER when getting MAC

Reading MAC from OF may return -EPROBE_DEFER if underlaying NVMEM device
isn't ready yet. In such case pass that error code up and "wait" to be
probed later.

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Link: https://lore.kernel.org/r/20220915133013.2243-1-zajec5@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/broadcom/bcm4908_enet.c