diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-02 11:42:40 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2022-12-02 11:42:48 +0100 |
commit | 480d1a29f522f8159c89f95aa5b459049503cd7b (patch) | |
tree | 82ca63aa2884d372bb956bff67eba1d46edf855b /MAKEALL | |
parent | c548b7b8bd9c0a52b7b3f4dd03efd7ac21b02350 (diff) | |
download | barebox-480d1a29f522f8159c89f95aa5b459049503cd7b.tar.gz barebox-480d1a29f522f8159c89f95aa5b459049503cd7b.tar.xz |
net: bcmgenet: Fix MAC address setting
bcmgenet_set_hwaddr() only copies the MAC address only into internal
state, but not into hardware. Copying to hardware is done in
__bcmgenet_set_hwaddr() called during open time. Depending on
nv.dev.eth0.ethaddr being set the order in which both functions
are called changes.
Copy the state into hardware as well in bcmgenet_set_hwaddr(). This
fixes sending packets when nv.dev.eth0.ethaddr is not set.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'MAKEALL')
0 files changed, 0 insertions, 0 deletions