* [PATCH] eeprom: starfive: set eth0 mac address properly
[not found] <CGME20230811071231epcas1p3688e154cfefd5579e3b71ec27a2964c2@epcas1p3.samsung.com>
@ 2023-08-11 7:12 ` Seung-Woo Kim
2023-09-04 6:21 ` Leo Liang
0 siblings, 1 reply; 2+ messages in thread
From: Seung-Woo Kim @ 2023-08-11 7:12 UTC (permalink / raw)
To: yanhong.wang, u-boot; +Cc: sw0312.kim, jh80.chung, l.stelmach
fdt_fixup_ethernet() sets eth0 mac address from ethaddr. Set
ethaddr to environment instead of eth0addr.
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
---
board/starfive/visionfive2/visionfive2-i2c-eeprom.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
index befe7888c400..c334d98cf6e5 100644
--- a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
+++ b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
@@ -504,7 +504,7 @@ int mac_read_from_eeprom(void)
}
// 1, setup ethaddr env
- eth_env_set_enetaddr("eth0addr", pbuf.eeprom.atom4.data.mac0_addr);
+ eth_env_set_enetaddr("ethaddr", pbuf.eeprom.atom4.data.mac0_addr);
eth_env_set_enetaddr("eth1addr", pbuf.eeprom.atom4.data.mac1_addr);
/**
--
2.19.2
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] eeprom: starfive: set eth0 mac address properly
2023-08-11 7:12 ` [PATCH] eeprom: starfive: set eth0 mac address properly Seung-Woo Kim
@ 2023-09-04 6:21 ` Leo Liang
0 siblings, 0 replies; 2+ messages in thread
From: Leo Liang @ 2023-09-04 6:21 UTC (permalink / raw)
To: Seung-Woo Kim; +Cc: yanhong.wang, u-boot, jh80.chung, l.stelmach
On Fri, Aug 11, 2023 at 04:12:25PM +0900, Seung-Woo Kim wrote:
> fdt_fixup_ethernet() sets eth0 mac address from ethaddr. Set
> ethaddr to environment instead of eth0addr.
>
> Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
> ---
> board/starfive/visionfive2/visionfive2-i2c-eeprom.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-09-04 6:23 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CGME20230811071231epcas1p3688e154cfefd5579e3b71ec27a2964c2@epcas1p3.samsung.com>
2023-08-11 7:12 ` [PATCH] eeprom: starfive: set eth0 mac address properly Seung-Woo Kim
2023-09-04 6:21 ` Leo Liang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox