realtek: Fix nvmem support for ethernet device
authorHarshal Gohel <[email protected]>
Mon, 14 Apr 2025 13:16:47 +0000 (13:16 +0000)
committerHauke Mehrtens <[email protected]>
Thu, 28 Aug 2025 19:07:57 +0000 (21:07 +0200)
commit5880f345ba6bf8387a0219aafbce661c1dbca357
tree3cb73f333cf9b074c8633aefa5981381648ece40
parent664424aaeb4a7b74123cc94c536e42fa925cf8c3
realtek: Fix nvmem support for ethernet device

The function of_get_mac_address is not taking care of evaluation the nvmem
address before trying to read out the mac-address properties. The driver
must check whether the return code is -EPROBE_DEFER and stop the probing
process in that case. If the nvmem-cell related driver code finished, the
probe can be redone ad the correct mac-address will appear for the device.

Signed-off-by: Harshal Gohel <[email protected]>
Signed-off-by: Sharadanand Karanjkar <[email protected]>
Link: https://github.com/openwrt/openwrt/pull/19362
Signed-off-by: Hauke Mehrtens <[email protected]>
target/linux/realtek/files-6.12/drivers/net/ethernet/rtl838x_eth.c