summaryrefslogtreecommitdiff
path: root/board
diff options
context:
space:
mode:
authorandy.hu <andy.hu@starfivetech.com>2024-12-06 05:02:52 +0300
committerandy.hu <andy.hu@starfivetech.com>2024-12-06 05:02:52 +0300
commit09f5548f47b3316066ed4ab5377fadf5498f1af1 (patch)
tree1c6ad0bfe3d5ee393c21fa11cc8500d885cda346 /board
parent6ee6bf83f92d7959464313ec7c5c9a02931fd48f (diff)
parent1f7f8aa091112aa57ec0420f3ac0f748f915e4b9 (diff)
downloadu-boot-JH7110_VisionFive2_devel.tar.xz
Merge branch 'CR_16009_VF2_eeprom_ziv.xu' into 'jh7110-master'HEADJH7110_VF2_6.6_v5.13.2JH7110_VF2_515_v5.13.2JH7110_VisionFive2_devel
CR_16009_VF2_eeprom_ziv.xu See merge request sdk/u-boot!93
Diffstat (limited to 'board')
-rw-r--r--board/starfive/visionfive2/visionfive2-i2c-eeprom.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
index 8b8516f8c0..1c20c2c375 100644
--- a/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
+++ b/board/starfive/visionfive2/visionfive2-i2c-eeprom.c
@@ -689,6 +689,7 @@ static int print_usage(void)
int do_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
{
char *cmd;
+ int ret;
if (argc == 1) {
show_eeprom(&einfo);
@@ -703,7 +704,11 @@ int do_mac(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
/* Commands with no argument */
if (!strcmp(cmd, "read_eeprom")) {
has_been_read = 0;
- return read_eeprom(eeprom_wp_buff);
+ ret = read_eeprom(eeprom_wp_buff);
+ if (!ret)
+ show_eeprom(&einfo);
+
+ return ret;
} else if (!strcmp(cmd, "initialize")) {
init_local_copy(eeprom_wp_buff);
return 0;