lantiq: xrx200: handle EPROBE_DEFER for MAC address
authorBurak Aydos <byhexadecimal@gmail.com>
Tue, 3 Feb 2026 20:38:01 +0000 (23:38 +0300)
committerHauke Mehrtens <hauke@hauke-m.de>
Sat, 7 Feb 2026 14:27:11 +0000 (15:27 +0100)
commit50e7e5c80d9269e7a6e947688ffb4cec895d1237
treeebf75ab618a942ad19a5a7fe64f2e002c84c66cb
parent09de75950678db1d41aeb5840b41af432a4d4163
lantiq: xrx200: handle EPROBE_DEFER for MAC address

The xrx200 ethernet driver falls back to a random MAC address on any
error from of_get_ethdev_address(), including -EPROBE_DEFER. When the
MAC address comes from an nvmem layout driver (such as u-boot-env on
NAND), the nvmem cell may not be available yet at first probe attempt.

Fix this by propagating EPROBE_DEFER so the driver probe is deferred
until the nvmem cell becomes available.

Tested on Zyxel P-2812HNU-F1 (NAND, u-boot-env nvmem layout).

Signed-off-by: Burak Aydos <byhexadecimal@gmail.com>
Link: https://github.com/openwrt/openwrt/pull/21861
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
target/linux/lantiq/patches-6.12/0801-net-ethernet-lantiq-xrx200-handle-EPROBE_DEFER-for-MAC-address.patch [new file with mode: 0644]