diff options
author | Tom Rini <trini@konsulko.com> | 2022-08-09 08:14:09 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-08-09 08:14:09 -0400 |
commit | af7d151b8eaa56aaf61beb38248ce45b7ca017a8 (patch) | |
tree | 28f6a92be31d0b92dc0c14bb767ee94697d255af /arch | |
parent | aef6839747b5b01e3d1d32d16e712d42a6702b88 (diff) | |
parent | 3145e0d0ff0837647351f2ca261b4cde779f83e0 (diff) | |
download | u-boot-af7d151b8eaa56aaf61beb38248ce45b7ca017a8.zip u-boot-af7d151b8eaa56aaf61beb38248ce45b7ca017a8.tar.gz u-boot-af7d151b8eaa56aaf61beb38248ce45b7ca017a8.tar.bz2 |
Merge tag 'u-boot-amlogic-20220809' of https://source.denx.de/u-boot/custodians/u-boot-amlogic
- fixup error on efuse commands return
- add documentation on boot flow
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-meson/sm.c | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/arch/arm/mach-meson/sm.c b/arch/arm/mach-meson/sm.c index 6c28c0f..d6eb910 100644 --- a/arch/arm/mach-meson/sm.c +++ b/arch/arm/mach-meson/sm.c @@ -82,10 +82,7 @@ ssize_t meson_sm_write_efuse(uintptr_t offset, void *buffer, size_t size) smc_call(®s); - if (regs.regs[0] == 0) - return -1; - - return 0; + return regs.regs[0]; } #define SM_CHIP_ID_LENGTH 119 @@ -222,7 +219,7 @@ static int do_efuse_read(struct cmd_tbl *cmdtp, int flag, int argc, address = simple_strtoul(argv[3], NULL, 0); ret = meson_sm_read_efuse(offset, (void *)address, size); - if (ret) + if (ret != size) return CMD_RET_FAILURE; return CMD_RET_SUCCESS; @@ -243,7 +240,7 @@ static int do_efuse_write(struct cmd_tbl *cmdtp, int flag, int argc, address = simple_strtoul(argv[3], NULL, 0); ret = meson_sm_write_efuse(offset, (void *)address, size); - if (ret) + if (ret != size) return CMD_RET_FAILURE; return CMD_RET_SUCCESS; |