]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ethernet: Extend device_get_mac_address() to use NVMEM
authorStefan Wahren <wahrenst@gmx.net>
Fri, 12 Sep 2025 14:03:32 +0000 (16:03 +0200)
committerJakub Kicinski <kuba@kernel.org>
Tue, 16 Sep 2025 01:34:08 +0000 (18:34 -0700)
commitd2d3f529e7b6ff2aa432b16a2317126621c28058
tree54ab95d99d125f9d9f088f5c50e71358e9962052
parentc5b7509d3a47c0c7b09629340c90ce5d4dae07ca
ethernet: Extend device_get_mac_address() to use NVMEM

A lot of modern SoC have the ability to store MAC addresses in their
NVMEM. So extend the generic function device_get_mac_address() to
obtain the MAC address from an nvmem cell named 'mac-address' in
case there is no firmware node which contains the MAC address directly.

Signed-off-by: Stefan Wahren <wahrenst@gmx.net>
Reviewed-by: Andrew Lunn <andrew@lunn.ch>
Link: https://patch.msgid.link/20250912140332.35395-3-wahrenst@gmx.net
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ethernet/eth.c