[PATCHv2 net] net: ll_temac: Return actual error from of_get_mac_address()

Andrew Lunn andrew at lunn.ch
Thu Sep 3 15:07:02 PDT 2026


On Wed, Sep 02, 2026 at 02:02:38PM -0700, Rosen Penev wrote:
> When of_get_mac_address() fails, return the actual error code (rc)
> instead of the hardcoded -ENODEV. This preserves the original error
> information, which may be more specific (e.g., -EINVAL, -EPROBE_DEFER)
> and helps callers handle the failure appropriately.
> 
> Use dev_err_probe() to avoid printing an extra error message in case of
> -EPROBE_DEFER.
> 
> Fixes: 8425c41d1ef7 ("net: ll_temac: Extend support to non-device-tree platforms")
> Assisted-by: opencode:big-pickle
> Signed-off-by: Rosen Penev <rosenp at gmail.com>

Does this bother anybody? Have you seen the extra error message?

Maybe net-next would be a better target.

      Andrew



More information about the linux-arm-kernel mailing list